/* Atendimento acompanhado: rascunho para revisão (TPC e TPE). Sem dependências remotas.
   Hero adaptada da hero pública da TPC (reference/index-hero.css, header-glass.css e
   tpc-light.css). Tela de produto abaixo da hero inspirada na landing do Hora Líquida
   (moldura discreta, trocas curtas de estado), com uma caixa de entrada ilustrativa. */

@font-face {
  font-family: "Manrope";
  src: url("assets/manrope.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

/* Inter só na interface ilustrativa, para ela ler como software e não como página. */
@font-face {
  font-family: "Inter";
  src: url("assets/Inter-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("assets/Inter-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Paleta da TPC (tpc-light.css): papel, branco, petróleo e o lime como único sinal. */
  --paper: #f5f5f2;
  --white: #ffffff;
  --mist: #e5eae5;
  --rule: #d9dcd6;
  --ink: #0f3038;
  --ink-2: #334e55;
  --ink-3: #4f666c;
  --ink-hover: #1d4550;
  --lime: #d5ff46;
  --lime-hover: #c8ef42;
  --lime-wash: rgb(213 255 70 / 26%);
  --hair: rgb(15 48 56 / 12%);
  --hair-strong: rgb(15 48 56 / 28%);
  --petrol: var(--ink);
  --ink-muted: var(--ink-3);
  --on-dark: #f5f5f2;
  --on-dark-muted: rgb(245 245 242 / 80%);
  --on-dark-line: rgb(245 245 242 / 14%);
  --on-dark-fill: rgb(245 245 242 / 6%);

  --radius-xl: clamp(24px, 2.4vw, 36px);
  --radius-lg: 28px;
  --radius-md: clamp(20px, 1.8vw, 24px);
  --radius-sm: 14px;
  --container: 1180px;
  --gutter: clamp(20px, 5vw, 48px);
  --section-space: clamp(72px, 10vw, 128px);
  --text: clamp(1.0625rem, 1rem + .25vw, 1.125rem);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --t-fast: 160ms;
  --t-med: 220ms;
  --font: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-ui: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --arrow-ink: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%230F3038' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 10h12M11 5l5 5-5 5'/%3E%3C/svg%3E");
}

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

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

[hidden] {
  display: none !important;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 104px;
}

html:has(dialog[open]) {
  overflow: hidden;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: clip;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: var(--lime);
  color: var(--ink);
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
}

p {
  text-wrap: pretty;
}

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

a {
  color: inherit;
  text-underline-offset: 0.2em;
}

button {
  font: inherit;
  color: inherit;
}

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

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

main:focus {
  outline: none;
}

.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

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

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

/* ---------- Barra do rascunho e variantes ---------- */

.preview-bar {
  position: relative;
  z-index: 45;
  background: var(--ink);
  color: var(--on-dark);
  font-size: 0.8125rem;
  line-height: 1.45;
}

.preview-bar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding-block: 10px;
}

.variant-switch {
  display: flex;
  gap: 4px;
  padding: 3px;
  list-style: none;
  border-radius: 999px;
  background: var(--on-dark-fill);
}

.variant-switch a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 6px 14px;
  border-radius: 999px;
  color: var(--on-dark-muted);
  font-weight: 700;
  text-decoration: none;
}

.variant-switch a:hover {
  color: var(--on-dark);
}

.variant-switch a[aria-current="page"] {
  background: var(--lime);
  color: var(--ink);
}

/* ---------- Header: cápsula translúcida da TPC sobre o campo da hero ----------
   Sticky e com margem negativa embaixo, para a hero começar por trás dela, como na
   página pública (header-glass.css: 60% de branco e desfoque de 28 px). */

.site-header {
  --header-h: 64px;
  --header-top: 10px;
  position: sticky;
  top: var(--header-top);
  z-index: 40;
  width: min(100% - 2 * clamp(10px, 2.2vw, 32px), 1260px);
  margin-top: var(--header-top);
  margin-bottom: calc(-1 * (var(--header-h) + var(--header-top)));
}

.site-header__pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  height: var(--header-h);
  padding: 0 6px 0 16px;
  border-radius: 22px;
  background: rgb(255 255 255 / 60%);
  -webkit-backdrop-filter: saturate(1.4) blur(28px);
  backdrop-filter: saturate(1.4) blur(28px);
  box-shadow: 0 0 0 1px var(--hair), 0 14px 32px -26px rgb(15 48 56 / 45%);
}

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

/* A assinatura da logo é pequena por natureza; abaixo de 148 px ela deixa de ser legível. */
.brand__logo {
  width: 148px;
  height: auto;
}

.site-nav ul {
  display: flex;
  gap: 2px;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color var(--t-fast) var(--ease);
}

.site-nav a:hover {
  background: var(--mist);
}

/* Dois seletores de classe para vencer .btn e .btn--sm, que vêm depois no arquivo. */
.site-header__pill .site-header__cta {
  flex: none;
  min-height: 44px;
  padding: 0 14px;
  font-size: 0.875rem;
}

@media (max-width: 900px) {
  .site-nav {
    display: none;
  }
}

/* Abaixo de 340 px não cabem a logo legível e o botão (tests/measure_layout.py): o CTA da
   hero fica logo abaixo. */
@media (max-width: 339px) {
  .site-header__pill .site-header__cta {
    display: none;
  }
}

@media (min-width: 520px) {
  .site-header__pill .site-header__cta {
    padding: 0 18px;
    font-size: 0.9375rem;
  }
}

@media (min-width: 901px) {
  .site-header {
    --header-h: 72px;
    --header-top: 14px;
  }

  .site-header__pill {
    padding: 0 10px 0 22px;
    border-radius: 999px;
  }

  .brand__logo {
    width: 176px;
  }

  .site-header__pill .site-header__cta {
    min-height: 48px;
    padding: 0 22px;
  }
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header__pill {
    background: rgb(255 255 255 / 94%);
  }
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}

.btn--sm {
  min-height: 44px;
  padding: 10px 18px;
  font-size: 0.9375rem;
}

.btn--primary {
  background: var(--ink);
  color: var(--paper);
}

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

.btn--lime {
  background: var(--lime);
  color: var(--ink);
}

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

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--hair-strong);
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
  transition: text-decoration-color var(--t-fast) var(--ease);
}

.text-link:hover {
  text-decoration-color: currentColor;
}

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

.eyebrow {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.3;
  text-transform: uppercase;
  color: var(--ink-3);
}

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

.section {
  position: relative;
  padding-block: var(--section-space);
}

.section--tight {
  padding-top: 0;
}

.section__head {
  max-width: 780px;
}

.section h2 {
  margin-top: 16px;
  font-size: clamp(2rem, 4.4vw, 3.25rem);
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.section__lead {
  max-width: 40em;
  margin-top: 20px;
  font-size: clamp(1.0625rem, 1.3vw, 1.1875rem);
  color: var(--ink-2);
}

.on-dark .section__lead {
  color: var(--on-dark-muted);
}

.card {
  padding: 28px;
  border: 1px solid var(--hair);
  border-radius: var(--radius-md);
  background: var(--white);
}

.card h3 {
  font-size: 1.25rem;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.card p {
  margin-top: 12px;
  color: var(--ink-2);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
  gap: 16px;
  margin-top: 48px;
  padding: 0;
  list-style: none;
}

/* ---------- Hero: a hero pública da TPC aplicada a esta oferta ----------
   Uma coluna centralizada, título Manrope 800 compacto (-0.04em), apoio central, um CTA
   em pílula com contorno e seta discreta, e o campo de luz lime dos cards de serviço
   atravessando a hero uma vez (reference/index-hero.css). A hero é um container de
   largura, então 100cqi é a largura exata dela e --hero-c a largura útil do texto. */

.hero {
  --hero-c: min(var(--container), 100vw - 2 * var(--gutter));
  --band: clamp(40px, min(8vw, 11vh), 112px);
  --gap-copy: 20px;
  --gap-action: 28px;
  position: relative;
  isolation: isolate;
  overflow: clip;
  padding-top: 74px;
  background: var(--paper);
  container-type: inline-size;
}

@supports (width: 1cqi) {
  .hero {
    --hero-c: min(var(--container), 100cqi - 2 * var(--gutter));
  }
}

/* Campo: tela branca com uma sombra petróleo leve no alto à esquerda; a faixa de baixo
   dissolve no papel, então a hero encontra a tela de produto sem emenda. */
.hero__field {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background:
    radial-gradient(46% 70% at 0% 0%, rgb(15 48 56 / 5%) 0%, rgb(15 48 56 / 0%) 100%),
    var(--white);
  -webkit-mask-image: linear-gradient(0deg, rgb(0 0 0 / 0%) 0, #000 var(--band));
  mask-image: linear-gradient(0deg, rgb(0 0 0 / 0%) 0, #000 var(--band));
  pointer-events: none;
  user-select: none;
}

.hero__field::before,
.hero__field::after {
  content: "";
  position: absolute;
  display: block;
  pointer-events: none;
}

/* Foco de luz: o gradiente do card de serviço reescalado para a hero, em 84% 6%. */
.hero__field::before {
  top: -24%;
  left: 29%;
  width: 110%;
  height: 128%;
  background: radial-gradient(63.64% 93.75% at 50% 23.44%, rgb(213 255 70 / 30%) 0%, rgb(213 255 70 / 12%) 42%, rgb(213 255 70 / 0%) 78%);
  transform: translate(0, 0) scale(1);
  transform-origin: 50% 23.44%;
}

/* Eco: o mesmo gradiente menor e mais suave, em 10% 74%. */
.hero__field::after {
  top: 11.6%;
  left: -30.6%;
  width: 81.2%;
  height: 124.8%;
  background: radial-gradient(64.04% 64.1% at 50% 50%, rgb(213 255 70 / 22%) 0%, rgb(213 255 70 / 9%) 42%, rgb(213 255 70 / 0%) 78%);
  transform: translate(0, 0) scale(1);
  transform-origin: 50% 50%;
}

/* Uma passagem de 4,8 s armada pelo app.js; "hold" pausa a mesma linha do tempo. */
.hero__field[data-field-motion]::before {
  animation: hero-field-wash 4.8s linear both;
  will-change: transform;
}

.hero__field[data-field-motion]::after {
  animation: hero-field-echo 4.8s linear both;
  will-change: transform;
}

.hero__field[data-field-motion="hold"]::before,
.hero__field[data-field-motion="hold"]::after {
  animation-play-state: paused;
}

@keyframes hero-field-wash {
  0% {
    transform: translate(0, 0) scale(1);
    animation-timing-function: cubic-bezier(.45, 0, .3, 1);
  }

  42% {
    transform: translate(-58.18%, 14.06%) scale(1.06);
    animation-timing-function: cubic-bezier(.4, 0, .35, 1);
  }

  80% {
    transform: translate(2.27%, -.78%) scale(.99);
    animation-timing-function: cubic-bezier(.3, 0, .3, 1);
  }

  100% {
    transform: translate(0, 0) scale(1);
  }
}

@keyframes hero-field-echo {
  0% {
    transform: translate(0, 0) scale(1);
    animation-timing-function: cubic-bezier(.45, 0, .3, 1);
  }

  46% {
    transform: translate(71.43%, -11.22%) scale(1.08);
    animation-timing-function: cubic-bezier(.4, 0, .35, 1);
  }

  82% {
    transform: translate(-2.46%, 1.6%) scale(.99);
    animation-timing-function: cubic-bezier(.3, 0, .3, 1);
  }

  100% {
    transform: translate(0, 0) scale(1);
  }
}

.hero__shell {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(var(--container), 100% - 2 * var(--gutter));
  margin-inline: auto;
  padding-block: var(--band);
  text-align: center;
}

.hero__kicker {
  margin-bottom: 18px;
  color: var(--ink-2);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.005em;
}

.hero h1 {
  max-width: 12em;
  margin: 0;
  color: var(--ink);
  font-size: clamp(2.25rem, calc(var(--hero-c) / 11.2), 4.375rem);
  font-weight: 800;
  font-synthesis: none;
  line-height: 1.05;
  letter-spacing: -0.04em;
  text-align: center;
  text-wrap: balance;
}

.hero__support {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--gap-action);
  width: 100%;
  margin-top: var(--gap-copy);
}

.hero__lead {
  max-width: 38em;
  color: var(--ink-2);
  font-size: var(--text);
  line-height: 1.6;
  letter-spacing: -0.01em;
  text-align: center;
  text-wrap: pretty;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 28px;
}

/* O CTA da hero pública: contorno petróleo, rótulo e seta em linha; lime só no hover. */
.hero__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  max-width: 100%;
  min-height: 56px;
  margin: 0;
  padding: 10px 20px 10px 26px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background-color: transparent;
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.005em;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}

.hero__cta::after {
  content: "";
  flex: none;
  width: 18px;
  height: 18px;
  background: var(--arrow-ink) center / 18px 18px no-repeat;
  transition: transform var(--t-med) var(--ease);
}

@media (hover: hover) {
  .hero__cta:hover {
    background-color: var(--lime);
  }

  .hero__cta:hover::after {
    transform: translateX(3px);
  }
}

.hero__cta:active {
  background-color: var(--lime-hover);
  transform: scale(.985);
}

.hero__cta:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
}

.hero__note {
  max-width: 40em;
  margin-top: 28px;
  color: var(--ink-3);
  font-size: 0.9375rem;
  line-height: 1.55;
  text-align: center;
}

@media (min-width: 641px) {
  .hero {
    --gap-copy: clamp(22px, 2.4vw, 30px);
    --gap-action: clamp(28px, 3vw, 36px);
  }

  .hero__lead {
    text-wrap: balance;
  }
}

@media (min-width: 901px) {
  .hero {
    padding-top: 86px;
  }
}

/* ---------- Tela de produto: caixa de entrada ilustrativa ---------- */

.product {
  position: relative;
  padding-block: clamp(4px, 1vw, 16px) var(--section-space);
}

.product__inner {
  width: min(100% - 2 * var(--gutter), 1240px);
  margin-inline: auto;
}

.product__title {
  max-width: 28em;
  margin: 0 auto;
  color: var(--ink);
  font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem);
  line-height: 1.2;
  letter-spacing: -0.025em;
  text-align: center;
}

.demo {
  margin-top: 20px;
}

/* Controles: reproduzir, pausar ou repetir, e as quatro etapas. Só aparecem com JS. */
.demo__controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 12px;
  margin-bottom: 16px;
}

.demo__toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 20px 0 16px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color var(--t-fast) var(--ease);
}

.demo__icon {
  display: none;
  flex: none;
}

.demo:not([data-mode="playing"]):not([data-mode="done"]) .demo__icon--play,
.demo[data-mode="playing"] .demo__icon--pause,
.demo[data-mode="done"] .demo__icon--replay {
  display: block;
}

.demo__steps {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.demo__steps button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 44px;
  padding: 0 16px 0 8px;
  border: 1px solid var(--hair-strong);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}

.demo__step-n {
  display: grid;
  flex: none;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--paper);
  font-size: 0.8125rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

@media (hover: hover) {
  .demo__toggle:hover {
    background: var(--lime);
  }

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

.demo__steps button[aria-current="step"] {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.demo__steps button[aria-current="step"] .demo__step-n {
  background: var(--lime);
  color: var(--ink);
}

.demo__status {
  flex-basis: 100%;
  min-height: 1.5em;
  color: var(--ink-3);
  font-size: 0.875rem;
  line-height: 1.5;
  text-align: center;
}

@media (max-width: 640px) {
  .demo__steps {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .demo__steps button {
    gap: 8px;
    padding: 0 10px 0 6px;
  }

  .demo__step-n {
    width: 26px;
    height: 26px;
  }
}

/* Moldura discreta, como a tela de produto do Hora Líquida, sem formas decorativas. */
.demo__frame {
  overflow: hidden;
  border: 1px solid rgb(15 48 56 / 14%);
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 1px 0 rgb(15 48 56 / 4%), 0 40px 80px -52px rgb(15 48 56 / 50%);
  font-family: var(--font-ui);
}

.demo__bar {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 42px;
  padding: 8px 16px;
  border-bottom: 1px solid rgb(15 48 56 / 10%);
  background: #f6f7f5;
}

.demo__dots {
  display: none;
  flex: none;
  gap: 6px;
}

.demo__dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #c8cfcb;
}

.demo__labels {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 14px;
  color: var(--ink-2);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.4;
}

@media (min-width: 641px) {
  .demo__dots {
    display: flex;
  }

  .demo__labels span + span {
    padding-left: 14px;
    border-left: 1px solid var(--hair-strong);
  }
}

.inbox {
  --ui-line: rgb(15 48 56 / 10%);
  --ui-soft: #f6f7f5;
  --ui-fill: #eef0ed;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  color: var(--ink);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.inbox h3 {
  font-size: inherit;
  letter-spacing: 0;
  text-wrap: wrap;
}

.inbox__rail,
.inbox__list {
  display: none;
}

.avatar {
  display: grid;
  flex: none;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--mist);
  color: var(--ink);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* Trilho de navegação do app (decorativo). */
.inbox__rail {
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 0;
  border-right: 1px solid var(--ui-line);
  background: var(--ui-soft);
}

.rail__item {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  color: var(--ink-3);
}

.rail__item.is-active {
  background: var(--white);
  box-shadow: inset 0 0 0 1px var(--ui-line);
  color: var(--ink);
}

/* Lista de conversas (decorativa): uma conversa de demonstração e linhas vazias. */
.inbox__list {
  min-width: 0;
  border-right: 1px solid var(--ui-line);
  background: var(--white);
}

.list__head {
  padding: 16px 16px 0;
  border-bottom: 1px solid var(--ui-line);
}

.list__title {
  display: block;
  font-size: 1rem;
  font-weight: 600;
}

.list__tabs {
  display: flex;
  gap: 16px;
  margin-top: 10px;
  color: var(--ink-3);
  font-size: 0.8125rem;
}

.list__tabs span {
  padding-bottom: 10px;
  border-bottom: 2px solid transparent;
}

.list__tabs .is-active {
  border-bottom-color: var(--ink);
  color: var(--ink);
  font-weight: 600;
}

.list__item {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--ui-line);
}

.list__item.is-active {
  background: var(--ui-soft);
  box-shadow: inset 3px 0 0 var(--ink);
}

.list__body {
  display: block;
  min-width: 0;
}

.list__name {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.4;
}

.list__snippet {
  margin-top: 2px;
  color: var(--ink-3);
  font-size: 0.875rem;
  line-height: 1.45;
}

.list__snippet > span {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.list__meta {
  display: inline-block;
  margin-top: 8px;
  padding: 1px 8px;
  border: 1px solid var(--ui-line);
  border-radius: 6px;
  color: var(--ink-3);
  font-size: 0.75rem;
}

.list__item--ghost .avatar {
  background: var(--ui-fill);
}

.bar {
  display: block;
  width: 78%;
  height: 8px;
  margin-top: 8px;
  border-radius: 4px;
  background: var(--ui-fill);
}

.bar--short {
  width: 52%;
}

/* Conversa */
.inbox__conv {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.conv__head {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: center;
  gap: 10px 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--ui-line);
}

.conv__who {
  min-width: 0;
}

.conv__name {
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.35;
}

.conv__channel {
  color: var(--ink-3);
  font-size: 0.8125rem;
  line-height: 1.4;
}

.conv__state {
  grid-column: 1 / -1;
  justify-self: start;
}

.conv__state .stack {
  justify-items: start;
}

.state {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border: 1px solid var(--hair-strong);
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
}

.state--handoff {
  border-color: var(--ink);
  background: var(--lime);
}

@media (min-width: 480px) {
  .conv__head {
    grid-template-columns: 36px minmax(0, 1fr) auto;
    padding-inline: 20px;
  }

  .conv__state {
    grid-column: auto;
    justify-self: end;
  }

  .conv__state .stack {
    justify-items: end;
  }
}

.conv__thread {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 20px clamp(12px, 2.4vw, 28px) 24px;
  list-style: none;
  background: #fafaf8;
}

.conv__system {
  align-self: center;
  padding: 3px 12px;
  border-radius: 999px;
  background: var(--ui-fill);
  color: var(--ink-3);
  font-size: 0.8125rem;
  font-weight: 600;
}

.msg {
  display: flex;
  flex-direction: column;
  max-width: min(88%, 34rem);
}

.msg--in {
  align-self: flex-start;
  align-items: flex-start;
}

.msg--out {
  align-self: flex-end;
  align-items: flex-end;
}

.msg__author {
  margin: 4px 4px 4px;
  color: var(--ink-3);
  font-size: 0.75rem;
  font-weight: 600;
}

.msg__bubble {
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.msg--in .msg__bubble {
  border: 1px solid var(--ui-line);
  border-bottom-left-radius: 4px;
  background: var(--white);
}

.msg--out .msg__bubble {
  border-bottom-right-radius: 4px;
  background: var(--ink);
  color: #f5f5f2;
}

.msg__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
  padding: 0;
  list-style: none;
}

.msg__chips li {
  padding: 2px 10px;
  border: 1px solid rgb(245 245 242 / 30%);
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 600;
}

.msg__note {
  display: block;
  margin-top: 8px;
  color: rgb(245 245 242 / 80%);
  font-size: 0.8125rem;
}

/* Registro de encaminhamento, no lugar da nota interna de um inbox. */
.conv__event {
  display: flex;
  align-items: flex-start;
  align-self: stretch;
  gap: 10px;
  margin-top: 6px;
  padding: 12px 14px;
  border: 1px solid rgb(15 48 56 / 16%);
  border-radius: 10px;
  background: var(--lime-wash);
  font-size: 0.9375rem;
  line-height: 1.45;
}

.conv__event svg {
  flex: none;
  margin-top: 1px;
}

.conv__event-label {
  display: block;
  color: var(--ink-2);
  font-size: 0.8125rem;
  font-weight: 600;
}

/* Campo de resposta só visual, claramente desativado; some no celular. */
.conv__composer {
  display: none;
  padding: 12px 20px 16px;
  border-top: 1px solid var(--ui-line);
  background: var(--white);
}

.composer__tabs {
  display: flex;
  gap: 16px;
  margin-bottom: 8px;
  color: var(--ink-3);
  font-size: 0.8125rem;
}

.composer__tabs .is-active {
  color: var(--ink);
  font-weight: 600;
}

.composer__field {
  display: block;
  padding: 10px 14px;
  border: 1px dashed var(--hair-strong);
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink-3);
  font-size: 0.875rem;
  cursor: not-allowed;
}

@media (min-width: 641px) {
  .conv__composer {
    display: block;
  }
}

/* Resumo do encaminhamento: no celular fica abaixo da conversa, em linhas compactas. */
.inbox__context {
  min-width: 0;
  padding: 18px 16px 20px;
  border-top: 1px solid var(--ui-line);
  background: var(--white);
}

.ctx__title {
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.35;
}

.ctx__list {
  display: grid;
  margin-top: 12px;
}

.ctx__row {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  align-items: baseline;
  gap: 2px 12px;
  padding: 10px 0;
  border-top: 1px solid var(--ui-line);
}

.ctx__row dt {
  color: var(--ink-3);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.4;
}

.ctx__row dd {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.45;
}

.ctx__empty {
  color: var(--ink-3);
}

@media (min-width: 760px) {
  .inbox {
    grid-template-columns: minmax(0, 1fr) 272px;
  }

  .inbox__context {
    padding: 18px 18px 22px;
    border-top: 0;
    border-left: 1px solid var(--ui-line);
  }

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

@media (min-width: 960px) {
  .inbox {
    grid-template-columns: 60px minmax(0, 1fr) 280px;
  }

  .inbox__rail {
    display: flex;
  }
}

@media (min-width: 1200px) {
  .inbox {
    grid-template-columns: 60px 272px minmax(0, 1fr) 288px;
  }

  .inbox__list {
    display: block;
  }
}

/* Estados que se substituem no mesmo lugar: a célula guarda o tamanho do maior. */
.stack {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.stack > * {
  grid-area: 1 / 1;
  min-width: 0;
}

/* Sem JS (ou antes dele), só o estado final aparece e a conversa está completa. */
.demo:not(.is-live) [data-until-beat] {
  display: none;
}

/* Com JS, o que ainda não aconteceu fica invisível, mas reserva o espaço final. */
.demo.is-live [data-pending] {
  visibility: hidden;
}

@media (prefers-reduced-motion: no-preference) {
  .demo .is-entering {
    animation: demo-in 260ms var(--ease) both;
  }

  .demo .stack > .is-entering {
    animation-name: demo-fade;
  }
}

@keyframes demo-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}

@keyframes demo-fade {
  from {
    opacity: 0;
  }
}

/* ---------- Tensão ---------- */

.pull {
  max-width: 30em;
  margin-top: 48px;
  padding-left: 24px;
  border-left: 3px solid var(--ink);
  font-size: clamp(1.375rem, 2.6vw, 2rem);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

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

.steps {
  counter-reset: step;
}

.steps .card {
  counter-increment: step;
  padding-block: 32px;
}

.steps .card::before {
  content: counter(step, decimal-leading-zero);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 28px;
  border: 1px solid var(--hair-strong);
  border-radius: 50%;
  font-size: 0.875rem;
  font-weight: 800;
}

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

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: 16px;
  margin-top: 16px;
}

.note-card {
  padding: 32px;
  border-radius: var(--radius-md);
}

.note-card--lime {
  border: 1px solid rgb(15 48 56 / 12%);
  background: var(--lime-wash);
}

.note-card--outline {
  border: 1px dashed var(--hair-strong);
}

.note-card h3 {
  font-size: 1.25rem;
  letter-spacing: -0.015em;
}

.note-card p {
  margin-top: 10px;
  color: var(--ink-2);
}

/* ---------- Painéis escuros: acompanhamento e CTA ---------- */

.panel-dark,
.cta-panel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: var(--ink);
  color: var(--on-dark);
}

.panel-dark {
  padding: clamp(36px, 6vw, 88px) clamp(24px, 6vw, 88px);
}

.duties {
  counter-reset: duty;
  margin-top: 48px;
}

.duty {
  counter-increment: duty;
  padding: 28px;
  border: 1px solid var(--on-dark-line);
  border-radius: var(--radius-md);
  background: var(--on-dark-fill);
}

.duty::before {
  content: counter(duty, decimal-leading-zero);
  display: block;
  margin-bottom: 28px;
  font-size: 0.875rem;
  font-weight: 800;
  color: var(--lime);
}

.duty h3 {
  font-size: 1.375rem;
}

.duty p {
  margin-top: 10px;
  color: var(--on-dark-muted);
}

/* Marca o que é rascunho comercial dentro do texto da página. */
.draft-note {
  display: inline-block;
  max-width: 100%;
  margin-top: 24px;
  padding: 8px 14px;
  border: 1px dashed rgb(245 245 242 / 45%);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--on-dark-muted);
}

.panel-note {
  max-width: 62em;
  margin-top: 32px;
  padding: 18px 22px;
  border-left: 3px solid var(--lime);
  border-radius: 4px var(--radius-sm) var(--radius-sm) 4px;
  background: var(--on-dark-fill);
  color: var(--on-dark-muted);
}

/* ---------- Planos ---------- */

.plans__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  margin-top: 40px;
}

.segmented {
  position: relative;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  min-inline-size: 0;
  max-width: 100%;
  margin: 0;
  padding: 4px;
  border: 1px solid var(--hair);
  border-radius: 28px;
  background: var(--white);
}

.segmented input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}

.segmented label {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--ink-3);
  cursor: pointer;
  transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}

.segmented input:checked + label {
  background: var(--ink);
  color: var(--paper);
}

.segmented input:focus-visible + label {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

/* O alternador funciona só com CSS; sem suporte a :has(), as duas modalidades aparecem empilhadas. */
@supports selector(:has(*)) {
  .plans:has(#modalidade-fixa:checked) [data-plan-panel="volume"],
  .plans:has(#modalidade-volume:checked) [data-plan-panel="fixa"] {
    display: none;
  }
}

.badge-validation {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border: 1px dashed rgb(15 48 56 / 40%);
  border-radius: 999px;
  background: var(--white);
  font-size: 0.875rem;
  font-weight: 700;
}

.plans__panel {
  margin-top: 24px;
}

.plans__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
  gap: 16px;
}

.plan {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: clamp(24px, 3vw, 32px);
  border: 1px solid var(--hair);
  border-radius: var(--radius-md);
  background: var(--white);
}

.plan--wide {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  align-items: start;
  gap: 24px 48px;
}

.plan__summary {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.plan__flag {
  align-self: flex-start;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--lime-wash);
  font-size: 0.8125rem;
  font-weight: 700;
}

.plan__name {
  font-size: 1.25rem;
  letter-spacing: -0.015em;
}

.plan__desc {
  font-size: 0.9375rem;
  color: var(--ink-2);
}

.plan__price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
}

.plan__currency {
  font-size: 1.125rem;
  font-weight: 700;
}

.plan__value {
  font-size: clamp(2.5rem, 4.2vw, 3.25rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
}

.plan__period {
  font-weight: 600;
  color: var(--ink-3);
}

.plan__fine {
  font-size: 0.875rem;
  color: var(--ink-3);
}

.plan__list {
  display: grid;
  gap: 12px;
  padding: 0;
  list-style: none;
  font-size: 1rem;
  line-height: 1.5;
}

.plan--wide .plan__list {
  padding-left: 48px;
  border-left: 1px solid var(--hair);
}

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

.plan__list li::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: inset 0 0 0 1px rgb(15 48 56 / 20%);
}

.plan__list li::after {
  content: "";
  position: absolute;
  top: 6px;
  left: 6px;
  width: 6px;
  height: 10px;
  border: solid var(--ink);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.plans__note {
  margin-top: 14px;
  font-size: 0.9375rem;
  color: var(--ink-3);
}

@media (max-width: 760px) {
  .plan--wide {
    grid-template-columns: minmax(0, 1fr);
  }

  .plan--wide .plan__list {
    padding-top: 24px;
    padding-left: 0;
    border-top: 1px solid var(--hair);
    border-left: 0;
  }
}

.setup {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 8px 40px;
  margin-top: 16px;
  padding: 22px 28px;
  border: 1px dashed var(--hair-strong);
  border-radius: var(--radius-md);
}

.setup__label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.setup__value {
  display: block;
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.setup__text {
  font-size: 0.96875rem;
  color: var(--ink-2);
}

@media (max-width: 640px) {
  .setup {
    grid-template-columns: minmax(0, 1fr);
  }
}

.rules {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 2fr);
  gap: 24px 48px;
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--hair);
}

.rules__title {
  font-size: 1.5rem;
}

.rules__more {
  margin-top: 12px;
  font-size: 0.9375rem;
  font-weight: 600;
}

.rules__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 24px 40px;
}

.rules__item dt {
  font-weight: 700;
}

.rules__item dd {
  margin-top: 6px;
  font-size: 0.96875rem;
  color: var(--ink-2);
}

.rules__final {
  margin-top: 32px;
  padding: 18px 22px;
  border-radius: var(--radius-sm);
  background: var(--lime-wash);
  font-weight: 700;
}

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

/* ---------- Escopo da proposta: único bloco com marcadores de status ---------- */

.scope {
  margin-top: 40px;
}

.scope .card ul {
  display: grid;
  gap: 12px;
  margin-top: 20px;
  padding: 0;
  list-style: none;
}

.scope .card li {
  position: relative;
  padding-left: 18px;
  color: var(--ink-2);
}

.scope .card li::before {
  content: "";
  position: absolute;
  top: 0.68em;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ink);
  opacity: 0.5;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0;
}

.pill--in {
  background: var(--lime);
}

.pill--pending {
  border: 1px solid var(--hair-strong);
}

.pill--out {
  background: rgb(15 48 56 / 7%);
  color: var(--ink-2);
}

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

.faq {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr);
  align-items: start;
  gap: 40px 64px;
}

.faq__head {
  position: sticky;
  top: 112px;
}

.faq__list {
  display: grid;
  gap: 40px;
}

.faq__group-title {
  margin-bottom: 8px;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.faq__item {
  border-top: 1px solid var(--rule);
}

.faq__item:last-child {
  border-bottom: 1px solid var(--rule);
}

.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 44px;
  padding: 22px 4px;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.35;
  list-style: none;
  cursor: pointer;
}

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

.faq__icon {
  position: relative;
  flex: none;
  width: 32px;
  height: 32px;
  border: 1px solid var(--hair-strong);
  border-radius: 50%;
  transition: background-color var(--t-med) var(--ease);
}

.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 2px;
  background: currentColor;
  transform: translate(-50%, -50%);
  transition: transform var(--t-med) var(--ease);
}

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

.faq__item[open] .faq__icon {
  border-color: var(--ink);
  background: var(--lime);
}

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

.faq__answer {
  max-width: 60ch;
  padding: 0 4px 24px;
  color: var(--ink-2);
}

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

  .faq__head {
    position: static;
  }
}

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

.cta-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 40px 64px;
  padding: clamp(36px, 6vw, 80px);
}

.cta-panel h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

.cta-panel .btn {
  margin-top: 32px;
}

.cta-panel__note {
  margin-top: 16px;
  font-size: 0.875rem;
  color: var(--on-dark-muted);
}

.criteria {
  display: grid;
  gap: 12px;
  padding: 0;
  list-style: none;
  counter-reset: criterion;
}

.criteria li {
  counter-increment: criterion;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 2px 16px;
  padding: 20px;
  border: 1px solid var(--on-dark-line);
  border-radius: 18px;
  background: var(--on-dark-fill);
}

.criteria li::before {
  content: counter(criterion, decimal-leading-zero);
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--lime);
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 800;
}

.criteria strong {
  font-size: 1.125rem;
}

.criteria span {
  color: var(--on-dark-muted);
}

@media (max-width: 900px) {
  .cta-panel {
    grid-template-columns: minmax(0, 1fr);
  }
}

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

.site-footer {
  padding-block: 40px 56px;
  border-top: 1px solid var(--rule);
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
}

.site-footer__logo {
  width: 168px;
  height: auto;
}

.site-footer p {
  max-width: 46em;
  font-size: 0.9375rem;
  color: var(--ink-2);
}

.site-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 700;
}

/* ---------- Diálogo do CTA ---------- */

.dialog {
  width: min(560px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  padding: 0;
  border: 0;
  border-radius: var(--radius-lg);
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 40px 100px -30px rgb(15 48 56 / 55%);
}

.dialog::backdrop {
  background: rgb(15 48 56 / 55%);
}

.dialog__body {
  position: relative;
  padding: clamp(28px, 5vw, 44px);
}

.dialog h2 {
  margin-top: 14px;
  padding-right: 48px;
  font-size: clamp(1.625rem, 3vw, 2rem);
  letter-spacing: -0.035em;
}

.dialog__text {
  margin-top: 16px;
  color: var(--ink-2);
}

.dialog__label {
  margin-top: 24px;
  font-weight: 700;
}

.dialog__list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  padding: 0;
  list-style: none;
}

.dialog__list li {
  padding: 12px 16px;
  border: 1px solid var(--hair);
  border-radius: var(--radius-sm);
  background: var(--white);
  font-size: 0.96875rem;
}

.dialog__actions {
  margin-top: 28px;
}

.dialog__close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--hair-strong);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.dialog__close:hover {
  background: var(--mist);
}

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

  .dialog[open] {
    animation: demo-in 220ms var(--ease);
  }
}

/* ---------- TPE: hero, CTA e simulação (só tpe.html, body.page-tpe) ----------
   Título longo em três linhas no desktop; subtítulo H2 em peso regular, com negrito só nos
   trechos marcados; parágrafo complementar menor e subordinado; CTA de rótulo longo sem
   estouro. A simulação ocupa a largura sem o resumo lateral, com respostas em verde claro. */

.page-tpe .hero h1 {
  max-width: 17em;
  font-size: clamp(2rem, calc(var(--hero-c) / 17), 4rem);
}

/* 19 px no celular, 23 a 24 px no desktop. */
.page-tpe .hero__subtitle {
  max-width: 36em;
  margin-top: var(--gap-copy);
  color: var(--ink);
  font-size: clamp(1.1875rem, 1.05rem + .6vw, 1.5rem);
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: -0.01em;
}

.page-tpe .hero__subtitle strong {
  font-weight: 700;
}

/* O parágrafo fica perto do subtítulo e longe do CTA: 16 px no celular, 18 px no desktop. */
.page-tpe .hero__support {
  margin-top: clamp(14px, 1.4vw, 20px);
}

.page-tpe .hero__lead {
  font-size: clamp(1rem, .95rem + .25vw, 1.125rem);
}

/* Em tela estreita o rótulo quebra em linhas equilibradas dentro do botão. */
.page-tpe .hero__cta,
.page-tpe .cta-panel .btn {
  text-wrap: balance;
}

/* Abaixo de 600 px o rótulo longo não cabe ao lado da logo legível: fica o CTA da hero. */
@media (max-width: 599px) {
  .page-tpe .site-header__pill .site-header__cta {
    display: none;
  }
}

/* Logo, navegação e o CTA longo só cabem juntos com folga a partir de 1180 px. */
@media (max-width: 1179px) {
  .page-tpe .site-nav {
    display: none;
  }
}

/* Sem o resumo lateral: trilho a partir de 760 px e lista a partir de 960 px. */
@media (min-width: 760px) {
  .page-tpe .inbox {
    grid-template-columns: 60px minmax(0, 1fr);
  }

  .page-tpe .inbox__rail {
    display: flex;
  }
}

@media (min-width: 960px) {
  .page-tpe .inbox {
    grid-template-columns: 60px 272px minmax(0, 1fr);
  }

  .page-tpe .inbox__list {
    display: block;
  }
}

.page-tpe .msg--out .msg__bubble {
  background: #e8f5c6;
  color: var(--ink);
}

/* Linhas de uma mesma resposta (valores), cada uma no seu bloco. */
.page-tpe .msg__line {
  display: block;
}

.page-tpe .msg__line + .msg__line {
  margin-top: 4px;
}

.page-tpe .msg__nowrap {
  white-space: nowrap;
}

/* ---------- TPE: roteiro customizável (#problema) ----------
   Texto longo em grade editorial, sem cartões: título na largura toda; a partir de 960 px,
   introdução e títulos das situações à esquerda e todo o corpo num único eixo à direita.
   Linhas finas separam as três situações; o fechamento leva o filete petróleo da citação. */

.page-tpe .roteiro__title {
  margin-top: 0;
}

.page-tpe .roteiro__open {
  display: grid;
  gap: 24px;
  margin-top: clamp(24px, 3vw, 40px);
}

/* 19 px no celular, 22 px no desktop: acima do corpo, abaixo dos títulos. */
.page-tpe .roteiro__intro {
  max-width: 30em;
  color: var(--ink);
  font-size: clamp(1.1875rem, 1.05rem + .45vw, 1.375rem);
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: -0.01em;
}

.page-tpe .roteiro__text {
  max-width: 38em;
  color: var(--ink-2);
  font-size: var(--text);
  line-height: 1.65;
}

.page-tpe .roteiro__text p + p {
  margin-top: 1em;
}

.page-tpe .roteiro__cases {
  margin-top: clamp(48px, 7vw, 96px);
  border-bottom: 1px solid var(--hair);
}

.page-tpe .roteiro__case {
  display: grid;
  gap: 12px;
  padding-block: clamp(28px, 3.4vw, 44px);
  border-top: 1px solid var(--hair);
}

/* 21 px no celular, 26 px no desktop. */
.page-tpe .roteiro__case h3 {
  max-width: 18em;
  font-size: clamp(1.3125rem, 1.15rem + .55vw, 1.625rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.page-tpe .roteiro__close {
  max-width: 40em;
  margin-top: clamp(40px, 5vw, 64px);
  padding-left: 24px;
  border-left: 3px solid var(--ink);
  color: var(--ink);
  font-size: clamp(1.125rem, 1rem + .5vw, 1.375rem);
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: -0.01em;
}

@media (min-width: 960px) {
  .page-tpe .roteiro__open,
  .page-tpe .roteiro__case {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
    align-items: start;
    column-gap: clamp(48px, 5.5vw, 80px);
  }
}

/* ---------- TPE: como funciona (#como-funciona) e recuperação (#recuperacao) ----------
   Três passos sobre um filete: o número pequeno, no círculo lime dos critérios do CTA,
   marca cada passo em cima da linha. A partir de 960 px os passos ficam lado a lado e a
   linha corre contínua. A recuperação usa a superfície petróleo existente, com título à
   esquerda e texto à direita no desktop, nas proporções do roteiro. */

.page-tpe .fluxo {
  display: grid;
  gap: 40px;
  margin-top: clamp(40px, 5vw, 64px);
  padding: 0;
  list-style: none;
  counter-reset: fluxo;
}

.page-tpe .fluxo__step {
  counter-increment: fluxo;
  border-top: 1px solid var(--hair-strong);
}

/* Centrado no filete de 1 px. */
.page-tpe .fluxo__step::before {
  content: counter(fluxo);
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-top: -16.5px;
  border-radius: 50%;
  background: var(--lime);
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

/* 20 px no celular, 22 px no desktop. */
.page-tpe .fluxo__step h3 {
  max-width: 16em;
  margin-top: 20px;
  font-size: clamp(1.25rem, 1.15rem + .3vw, 1.375rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.page-tpe .fluxo__step p {
  max-width: 34em;
  margin-top: 10px;
  color: var(--ink-2);
  font-size: 1.0625rem;
  line-height: 1.6;
}

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

  .page-tpe .fluxo__step {
    padding-right: clamp(32px, 3.4vw, 48px);
  }
}

.page-tpe .recupera {
  display: grid;
  gap: 24px;
}

.page-tpe .recupera__title {
  margin-top: 0;
}

.page-tpe .recupera__text {
  max-width: 36em;
  color: var(--on-dark-muted);
  font-size: var(--text);
  line-height: 1.65;
}

.page-tpe .recupera__text p + p {
  margin-top: 16px;
}

/* Abertura: 19 px no celular, 22 px no desktop, no branco cheio da superfície. */
.page-tpe .recupera__lead {
  color: var(--on-dark);
  font-size: clamp(1.1875rem, 1.05rem + .45vw, 1.375rem);
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: -0.01em;
}

@media (min-width: 960px) {
  .page-tpe .recupera {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
    align-items: start;
    column-gap: clamp(48px, 5.5vw, 80px);
  }
}

/* ---------- Preferências do sistema ---------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .hero__field[data-field-motion]::before,
  .hero__field[data-field-motion]::after {
    animation: none;
    will-change: auto;
  }

  .hero__cta:active,
  .hero__cta:hover::after {
    transform: none;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .site-header__pill {
    background: rgb(255 255 255 / 94%);
  }
}

@media (prefers-contrast: more) {
  .site-header__pill {
    background: rgb(255 255 255 / 94%);
  }

  .hero__cta,
  .demo__toggle {
    border-width: 2px;
  }
}

@media (forced-colors: active) {
  .hero__field::before,
  .hero__field::after {
    display: none;
  }

  .segmented input:checked + label,
  .demo__steps button[aria-current="step"] {
    border: 2px solid CanvasText;
  }

  .state--handoff {
    border: 2px solid CanvasText;
  }
}
