/* Cores de produto iguais às de packages/ui/src/styles.css da Truze. --brand-400 é o verde exato
   da logo (logo e fundo escuro); --brand-500 é o primário, com texto branco em AA. */
:root {
  --brand-50: #e8f9ef;
  --brand-100: #d2f4df;
  --brand-200: #a6e9bf;
  --brand-400: #1dc65c;
  --brand-500: #12883f;
  --brand-600: #0f7838;
  --brand-700: #0b6b30;
  --paper: #f4f7f3;
  --paper-soft: #fafcf9;
  --ink: #0a1a11;
  --ink-soft: #46574f;
  --line: #dce4dd;
  --night: #0a1a11;
  --night-line: #27392f;
  --gray-100: #f2f4f7;
  --gray-200: #e4e7ec;
  --gray-400: #98a2b3;
  --gray-500: #667085;
  --gray-600: #475467;
  --gray-900: #101828;
  --canvas: #f4f6f8;
  --chat: #eef1f4;
  --sidebar-accent: #1f3327;
  --sidebar-foreground: #e1e3e2;
  --sidebar-muted: #8aa595;
  --note: #fff7e1;
  --note-border: #f7e2a8;
  --note-foreground: #7c5604;
  --danger-50: #fdecec;
  --danger-500: #e5484d;
  --danger-700: #b42318;
  --blue: #2e6be6;
  --blue-50: #eaf1fe;
  --purple: #6e4ef2;
  --purple-50: #f1edff;
  --amber-50: #fef0c7;
  --amber-700: #b54708;
  --sans: "Inter", ui-sans-serif, system-ui, sans-serif;
  --display: "Bricolage Grotesque", "Inter", ui-sans-serif, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
dd {
  margin: 0;
  padding: 0;
}

ul,
ol {
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

svg {
  display: block;
}

[hidden] {
  display: none !important;
}

.icon {
  width: 16px;
  height: 16px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.rails {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  border-inline: 1px solid var(--line);
}

.section {
  border-top: 1px solid var(--line);
}

.pad {
  padding: 80px 32px 48px;
}

.pad-mock {
  padding: 0 32px 72px;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.accent {
  color: var(--brand-700);
}

/* Botões */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
  transition:
    transform 160ms ease,
    background-color 160ms ease;
}

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

.btn:focus-visible,
.mock button:focus-visible {
  outline: 2px solid var(--brand-500);
  outline-offset: 2px;
}

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

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

.btn-ghost {
  border: 1px solid var(--line);
  background: var(--paper-soft);
}

.btn-light {
  background: #fff;
  color: var(--ink);
}

.btn-sm {
  height: 36px;
  padding: 0 16px;
  font-size: 13.5px;
}

/* Cabeçalho */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgb(244 247 243 / 0.86);
  backdrop-filter: blur(10px);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 60px;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  color: var(--brand-500);
}

.logo-img {
  width: auto;
  height: 30px;
  fill: currentColor;
}

.site-nav {
  display: flex;
  gap: 28px;
}

.site-nav a,
.login-link {
  font-size: 13.5px;
  color: var(--ink-soft);
  transition: color 150ms;
}

.site-nav a:hover,
.login-link:hover {
  color: var(--ink);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Hero */
.hero {
  overflow: hidden;
}

.hero-copy {
  padding: 80px 32px 0;
  text-align: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 14px 4px 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper-soft);
  font-size: 13px;
  color: var(--ink-soft);
}

.pill-tag {
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--brand-700);
  color: #fff;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

h1 {
  max-width: 860px;
  margin: 28px auto 0;
  font-family: var(--display);
  font-size: clamp(44px, 7vw, 72px);
  line-height: 1.02;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.hero-lead {
  max-width: 580px;
  margin: 24px auto 0;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-soft);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}

.hero-scene {
  display: flex;
  justify-content: center;
  margin-top: 24px;
  overflow: hidden;
}

.hero-scene svg {
  width: 100%;
  min-width: 680px;
  height: auto;
}

.chips {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--line);
}

.chips li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px 12px;
  border-right: 1px solid var(--line);
  text-align: center;
  font-size: 13.5px;
}

.chips li:last-child {
  border-right: 0;
}

.chips .icon {
  width: 18px;
  height: 18px;
  color: var(--brand-700);
}

/* Títulos de seção */
.heading {
  max-width: 680px;
  margin-inline: auto;
  text-align: center;
}

.heading .eyebrow {
  color: var(--brand-700);
}

.heading h2 {
  margin-top: 16px;
  font-family: var(--display);
  font-size: clamp(34px, 5vw, 46px);
  line-height: 1.06;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.heading p:last-child:not(.eyebrow) {
  margin-top: 20px;
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--ink-soft);
}

/* Grades com linhas finas */
.grid {
  display: grid;
  border-top: 1px solid var(--line);
}

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

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

.grid > * {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.cols-3 > :nth-child(3n),
.cols-4 > :nth-child(4n) {
  border-right: 0;
}

.cols-3 > :nth-last-child(-n + 3),
.cols-4 > :nth-last-child(-n + 4) {
  border-bottom: 0;
}

.cell {
  padding: 24px;
  background: var(--paper-soft);
}

.cell h3,
.title-sm {
  font-family: var(--display);
  font-size: 19px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.cell p,
.body-sm {
  margin-top: 8px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-soft);
}

.pillar {
  display: flex;
  flex-direction: column;
}

.pillar-art {
  padding: 16px;
  border-bottom: 1px solid var(--line);
  background: rgb(231 247 240 / 0.5);
}

.pillar-art svg {
  width: 100%;
  height: auto;
}

.pillar-body {
  flex: 1;
  padding: 24px;
  background: var(--paper-soft);
}

.pillar-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--ink-soft);
}

.pillar-badge {
  padding: 2px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 10px;
}

.pillar h3 {
  margin-top: 12px;
  font-family: var(--display);
  font-size: 21px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.pillar-body p:not(.pillar-meta) {
  margin-top: 8px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-soft);
}

.feature {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.feature-art {
  display: flex;
  align-items: center;
  min-height: 150px;
  margin-top: auto;
  padding: 16px;
  border-radius: 12px;
  background: rgb(231 247 240 / 0.6);
  font-size: 12px;
  color: var(--gray-900);
}

.feature-art > div {
  width: 100%;
  max-width: 290px;
  margin-inline: auto;
}

.small-title {
  font-size: 15px;
  font-weight: 600;
}

.small-body {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-soft);
}

.plain-cell {
  padding: 24px;
}

/* Painel: seção escura */
.dark {
  background: var(--night);
}

.dark .rails {
  border-color: var(--night-line);
}

.dark .heading .eyebrow {
  color: var(--brand-400);
}

.dark .heading h2 {
  color: #fff;
}

.dark .heading p:last-child:not(.eyebrow) {
  color: var(--sidebar-foreground);
}

.dark .grid,
.dark .grid > * {
  border-color: var(--night-line);
}

.dark .small-title {
  color: #fff;
}

.dark .small-body {
  color: rgb(225 227 226 / 0.8);
}

/* Controle */
.control {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  border-top: 1px solid var(--line);
}

.control-main {
  padding: 32px;
  border-right: 1px solid var(--line);
  background: var(--paper-soft);
}

.control-side > div {
  padding: 32px;
}

.control-side > div:first-child {
  border-bottom: 1px solid var(--line);
}

.title-md {
  font-family: var(--display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.dept-list {
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper-soft);
}

.dept-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  font-size: 13.5px;
  font-weight: 500;
}

.dept-list li:last-child {
  border-bottom: 0;
}

.dept-list .count {
  margin-left: auto;
  font-size: 12px;
  font-weight: 400;
  color: var(--ink-soft);
}

.audit {
  margin-top: 16px;
  display: grid;
  gap: 12px;
}

.audit li {
  display: flex;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
}

.audit small {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: var(--ink-soft);
}

/* Passos */
.step-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--ink-soft);
}

.step-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--brand-50);
  color: var(--brand-700);
}

.step h3 {
  margin-top: 16px;
}

/* FAQ */
.faq {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 48px;
  padding: 0 32px 80px;
}

.faq div {
  padding: 24px 0;
  border-top: 1px dashed var(--line);
}

.faq dt {
  font-size: 15.5px;
  font-weight: 600;
}

.faq dd {
  margin-top: 8px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-soft);
}

/* Chamada final */
.cta {
  padding: 80px 32px;
  text-align: center;
  background: radial-gradient(60% 90% at 50% 0%, #12883f 0%, #0b6b30 70%);
}

.cta h2 {
  max-width: 640px;
  margin-inline: auto;
  font-family: var(--display);
  font-size: clamp(36px, 5.4vw, 50px);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: #fff;
}

.cta p {
  max-width: 500px;
  margin: 20px auto 0;
  font-size: 16.5px;
  line-height: 1.6;
  color: rgb(255 255 255 / 0.88);
}

.cta .eyebrow {
  margin-top: 20px;
  font-size: 12px;
  color: rgb(255 255 255 / 0.75);
}

/* Rodapé */
.site-footer {
  border-top: 1px solid var(--line);
}

.footer-main {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  padding: 48px 32px;
}

.footer-main > div {
  max-width: 380px;
}

.footer-main p {
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-soft);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 12px 28px;
  font-size: 14px;
  color: var(--ink-soft);
}

.footer-nav a:hover {
  color: var(--ink);
}

.footer-legal {
  border-top: 1px solid var(--line);
}

.footer-legal p {
  padding: 20px 32px;
  font-size: 12px;
  color: var(--ink-soft);
}

/* Mockups do produto */
.mock {
  display: flex;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--gray-900);
  font-size: 12px;
  text-align: left;
  box-shadow:
    0 1px 2px #0a1a110f,
    0 30px 70px -32px #0a1a1166;
}

.dark .mock {
  border-color: var(--night-line);
}

.mock-table-wrap {
  display: block;
  margin-top: 20px;
  overflow-x: auto;
}

.app-rail {
  display: flex;
  flex: none;
  flex-direction: column;
  align-items: center;
  width: 68px;
  padding: 12px 0;
  background: var(--night);
}

.app-rail-logo {
  width: auto;
  height: 30px;
  color: var(--brand-400);
  fill: currentColor;
}

.app-rail ul {
  width: 100%;
  margin-top: 20px;
  padding-inline: 6px;
}

.app-rail li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-bottom: 4px;
  padding: 8px 0;
  border-radius: 8px;
  font-size: 9.5px;
  color: var(--sidebar-muted);
}

.app-rail li.on {
  background: var(--sidebar-accent);
  color: #fff;
  font-weight: 600;
}

.app-rail li.on .icon {
  color: var(--brand-400);
}

.avatar {
  display: grid;
  flex: none;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
}

.avatar.sm {
  width: 24px;
  height: 24px;
  font-size: 9.5px;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 10.5px;
  font-weight: 500;
  white-space: nowrap;
}

.tag .icon {
  width: 10px;
  height: 10px;
}

.tag.green {
  background: var(--brand-50);
  color: var(--brand-700);
}

.tag.blue {
  background: var(--blue-50);
  color: var(--blue);
}

.tag.amber {
  background: var(--amber-50);
  color: var(--amber-700);
}

.tag.red {
  background: var(--danger-50);
  color: var(--danger-700);
}

.tag.gray {
  background: var(--gray-100);
  color: var(--gray-600);
}

.seg {
  display: flex;
  padding: 2px;
  border-radius: 8px;
  background: var(--gray-100);
}

.seg button,
.seg span {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  color: var(--gray-500);
  white-space: nowrap;
}

.seg .on {
  background: #fff;
  color: var(--gray-900);
  font-weight: 500;
  box-shadow: 0 1px 2px #0000001a;
}

.badge {
  display: grid;
  place-items: center;
  min-width: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--brand-100);
  color: var(--brand-700);
  font-size: 9.5px;
  font-weight: 600;
}

.badge.red {
  background: var(--danger-500);
  color: #fff;
}

/* Caixa de atendimento */
.inbox {
  height: 620px;
}

.inbox-list {
  display: flex;
  flex: none;
  flex-direction: column;
  width: 272px;
  border-right: 1px solid var(--gray-200);
}

.inbox-list-head {
  padding: 14px 14px 10px;
}

.inbox-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 15px;
  font-weight: 600;
}

.reset {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 400;
  color: var(--gray-500);
}

.reset .icon {
  width: 12px;
  height: 12px;
}

.search {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  margin: 10px 0;
  padding-inline: 10px;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  color: var(--gray-400);
}

.search .icon {
  width: 14px;
  height: 14px;
}

.conv-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}

.conv {
  display: flex;
  gap: 10px;
  width: 100%;
  padding: 10px 14px;
  text-align: left;
  transition: background-color 120ms;
}

.conv:hover {
  background: #f9fafb;
}

.conv.on {
  background: var(--brand-50);
}

.conv-body {
  flex: 1;
  min-width: 0;
}

.conv-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.conv-name {
  overflow: hidden;
  font-size: 13px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.conv-time {
  flex: none;
  font-size: 10.5px;
  color: var(--gray-400);
}

.conv-preview {
  display: block;
  overflow: hidden;
  margin-top: 2px;
  color: var(--gray-600);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.conv-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
}

.wait {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 10.5px;
  color: var(--danger-700);
}

.wait .icon {
  width: 10px;
  height: 10px;
}

.chat {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}

.chat-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--gray-200);
  color: var(--gray-500);
}

.chat-head > div {
  flex: 1;
  min-width: 0;
}

.chat-name {
  overflow: hidden;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--gray-900);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-phone {
  overflow: hidden;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.close-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 8px;
  background: var(--brand-50);
  color: var(--brand-700);
  font-size: 11.5px;
  font-weight: 500;
  white-space: nowrap;
}

.messages {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 8px;
  min-height: 0;
  padding: 16px;
  overflow-y: auto;
  background: var(--chat);
}

.msg {
  max-width: 78%;
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.35;
}

.msg.in {
  align-self: flex-start;
  background: #fff;
}

.msg.out {
  align-self: flex-end;
  background: var(--brand-100);
}

.msg-author {
  margin-bottom: 2px;
  font-size: 11px;
  font-weight: 600;
  color: var(--brand-700);
}

.msg-time {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  margin-top: 2px;
  font-size: 10px;
  color: var(--gray-500);
}

.msg-time .icon {
  width: 12px;
  height: 12px;
}

.event {
  align-self: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.7);
  font-size: 11px;
  text-align: center;
  color: var(--gray-500);
}

.note {
  max-width: 85%;
  align-self: flex-end;
  padding: 8px 12px;
  border: 1px solid var(--note-border);
  border-radius: 12px;
  background: var(--note);
  font-size: 12.5px;
  color: var(--note-foreground);
}

.note-label {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 2px;
  font-size: 10.5px;
  font-weight: 600;
}

.note-label .icon {
  width: 12px;
  height: 12px;
}

.pop-in {
  animation: pop-in 240ms ease-out both;
}

@keyframes pop-in {
  from {
    opacity: 0;
    transform: translateY(6px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.composer {
  position: relative;
  padding: 8px 16px 12px;
  border-top: 1px solid var(--gray-200);
}

.composer-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid var(--gray-200);
}

.composer-hint {
  margin-right: auto;
  color: var(--gray-500);
}

.composer-info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px;
  border-top: 1px solid var(--gray-200);
  font-size: 12.5px;
  color: var(--gray-500);
}

.mock-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding-inline: 12px;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 500;
  white-space: nowrap;
}

.mock-btn.primary {
  position: relative;
  border: 0;
  background: var(--brand-500);
  color: #fff;
  font-weight: 600;
  transition: background-color 150ms;
}

button.mock-btn.primary:hover {
  background: var(--brand-600);
}

.pulse {
  animation: pulse 1.8s ease-out infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgb(18 136 63 / 0.5);
  }
  100% {
    box-shadow: 0 0 0 12px rgb(18 136 63 / 0);
  }
}

.composer-tabs {
  display: flex;
  gap: 16px;
  color: var(--gray-500);
}

.composer-tabs .on {
  padding-bottom: 4px;
  border-bottom: 2px solid var(--brand-500);
  color: var(--brand-700);
  font-weight: 600;
}

.composer-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  color: var(--gray-500);
}

.composer-input {
  display: flex;
  flex: 1;
  align-items: center;
  height: 36px;
  min-width: 0;
  padding-inline: 10px;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  overflow: hidden;
  font-size: 12.5px;
  color: var(--gray-400);
  white-space: nowrap;
}

.composer-input.filled {
  color: var(--gray-900);
}

.send {
  display: grid;
  flex: none;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--brand-500);
  color: #fff;
}

.quick-pop {
  position: absolute;
  right: 16px;
  bottom: 100%;
  left: 16px;
  margin-bottom: 8px;
  padding: 10px;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  background: #fff;
  text-align: left;
  box-shadow: 0 8px 20px #0a1a1126;
  transition: background-color 150ms;
}

.quick-pop:hover {
  background: var(--brand-50);
}

.quick-pop strong {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.quick-pop span {
  display: block;
  overflow: hidden;
  margin-top: 4px;
  font-size: 11.5px;
  color: var(--gray-500);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quick-pop code,
.mono-green {
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--brand-50);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--brand-700);
}

.contact {
  display: flex;
  flex: none;
  flex-direction: column;
  align-items: center;
  width: 218px;
  padding: 16px;
  overflow: hidden;
  border-left: 1px solid var(--gray-200);
}

.contact .avatar {
  width: 56px;
  height: 56px;
  font-size: 16px;
}

.contact-name {
  margin-top: 10px;
  font-size: 13.5px;
  font-weight: 600;
}

.contact-phone {
  font-size: 11px;
  color: var(--gray-500);
}

.contact-block {
  width: 100%;
  margin-top: 16px;
}

.contact-label {
  margin-bottom: 6px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gray-400);
}

.contact-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 11.5px;
}

.contact-row span:first-child {
  color: var(--gray-500);
}

.contact-card {
  padding: 8px;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  font-size: 11px;
}

.contact-card strong {
  display: block;
  font-weight: 500;
}

.contact-card span {
  color: var(--gray-500);
}

/* Kanban */
.kanban {
  height: 520px;
}

.board-area {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}

.board-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--gray-200);
}

.board-title {
  font-size: 17px;
  font-weight: 600;
}

.board-total {
  margin-left: auto;
  color: var(--gray-500);
}

.board-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--blue-50);
  color: var(--blue);
}

.board-hint[hidden] {
  display: none;
}

.board {
  display: flex;
  flex: 1;
  gap: 12px;
  min-height: 0;
  padding: 12px;
  overflow-x: auto;
  background: var(--canvas);
}

.stage {
  display: flex;
  flex: 1 0 148px;
  flex-direction: column;
  min-width: 0;
}

.stage-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 6px;
  padding: 0 2px 6px;
  border-bottom: 2px solid;
}

.stage-dot {
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: 50%;
}

.stage-name {
  overflow: hidden;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stage-count {
  padding: 0 4px;
  border-radius: 4px;
  background: var(--gray-200);
  font-size: 10px;
  color: var(--gray-600);
}

.stage-sum {
  width: 100%;
  font-size: 10.5px;
  color: var(--gray-500);
  white-space: nowrap;
}

.stage-cards {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}

.add-card {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: auto;
  padding-inline: 4px;
  font-size: 11.5px;
  color: var(--gray-500);
}

.add-card .icon {
  width: 12px;
  height: 12px;
}

.deal {
  padding: 10px;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  background: #fff;
}

.deal-top {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12.5px;
  line-height: 1.2;
  font-weight: 600;
}

.deal-top span:nth-child(2) {
  flex: 1;
  min-width: 0;
}

.deal-top .icon {
  width: 14px;
  height: 14px;
  color: var(--gray-400);
}

.deal .tag {
  margin-top: 6px;
}

.deal-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 10.5px;
  color: var(--gray-600);
}

.deal-foot b {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--gray-900);
}

.queue-col {
  flex: none;
  width: 216px;
  padding: 8px;
  border-radius: 12px;
  background: var(--gray-100);
}

.queue-col.alert {
  background: rgb(253 236 236 / 0.7);
}

.queue-col-head {
  padding-inline: 4px;
}

.queue-col-head strong {
  display: block;
  font-size: 12.5px;
}

.queue-col-head span {
  font-size: 10.5px;
  color: var(--gray-500);
}

.alert .queue-col-head span,
.alert .ticket-time {
  color: var(--danger-700);
}

.ticket {
  margin-top: 8px;
  padding: 10px;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  background: #fff;
}

.ticket strong {
  font-size: 12.5px;
}

.ticket p {
  overflow: hidden;
  margin-top: 2px;
  font-size: 11.5px;
  color: var(--gray-600);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ticket-time {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  margin-top: 6px;
  font-size: 10.5px;
  color: var(--gray-500);
}

.ticket-time .icon {
  width: 10px;
  height: 10px;
}

/* Painel do gestor */
.panel-area {
  flex: 1;
  min-width: 0;
  padding: 20px;
  background: var(--canvas);
}

.panel-title {
  font-size: 18px;
  font-weight: 600;
}

.panel-sub {
  color: var(--gray-500);
}

.kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 16px;
}

.card {
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  background: #fff;
}

.kpi {
  padding: 14px;
}

.kpi-label {
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.2;
  color: var(--gray-600);
}

.kpi-icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 6px;
}

.kpi-icon .icon {
  width: 14px;
  height: 14px;
}

.kpi-value {
  margin-top: 8px;
  font-size: 24px;
  font-weight: 700;
}

.kpi-note {
  font-size: 11px;
  color: var(--gray-500);
}

.kpi-note.alert-text {
  color: var(--danger-700);
}

.panel-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 12px;
  margin-top: 12px;
}

.panel-stack {
  display: grid;
  gap: 12px;
}

.card-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13.5px;
  font-weight: 600;
}

.pad-card {
  padding: 14px;
}

.table-card {
  overflow-x: auto;
}

.table-card .card-title {
  padding: 14px 16px 10px;
}

table {
  width: 100%;
  min-width: 420px;
  border-collapse: collapse;
}

.table-card th {
  padding: 8px 8px;
  border-block: 1px solid var(--gray-200);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-align: left;
  text-transform: uppercase;
  color: var(--gray-400);
}

.table-card td {
  padding: 8px;
  border-bottom: 1px solid var(--gray-100);
}

.table-card th:first-child,
.table-card td:first-child {
  padding-left: 16px;
}

.table-card td:first-child {
  font-weight: 500;
}

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

.bar-cell {
  display: flex;
  align-items: center;
  gap: 8px;
}

.bar {
  display: flex;
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--gray-100);
}

.bar-cell .bar {
  width: 80px;
}

.bar i {
  display: block;
  background: var(--brand-500);
}

.bar i.red {
  background: var(--danger-500);
}

.dept {
  margin-top: 10px;
}

.dept p {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.dept b {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 500;
}

.dept b .icon {
  width: 12px;
  height: 12px;
  color: var(--gray-400);
}

.dept span {
  font-size: 11px;
  color: var(--gray-500);
}

.queue-row {
  display: flex;
  align-items: center;
  margin-top: 6px;
  font-weight: 500;
}

.queue-row .wait {
  margin-left: auto;
  margin-right: 8px;
  font-size: 11px;
  font-weight: 400;
}

.queue-row .wait .icon {
  width: 12px;
  height: 12px;
}

.assign {
  padding: 2px 6px;
  border: 1px solid var(--gray-200);
  border-radius: 6px;
  font-size: 10.5px;
}

/* Tabela de permissões */
.perm {
  overflow: hidden;
  margin-top: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  overflow-x: auto;
}

.perm table {
  font-size: 12.5px;
}

.perm th {
  padding: 10px 8px;
  border-bottom: 1px solid var(--gray-200);
  font-size: 11px;
  font-weight: 600;
  color: var(--gray-500);
}

.perm th:first-child,
.perm td:first-child {
  padding-left: 14px;
  text-align: left;
}

.perm td {
  padding: 10px 8px;
  border-bottom: 1px solid var(--gray-100);
}

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

.perm .icon {
  margin-inline: auto;
  color: var(--brand-500);
}

.perm .no {
  color: var(--gray-200);
}

/* Vinhetas das funcionalidades */
.mini {
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}

.mini-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
}

.mini-row.on {
  background: var(--brand-50);
}

.mini-row small {
  display: block;
  font-size: 11px;
  color: var(--gray-500);
}

.mini-row .right {
  margin-left: auto;
  font-size: 11px;
  color: var(--gray-500);
}

.mini-note {
  margin-top: 8px;
  text-align: center;
  font-size: 11px;
  color: var(--gray-500);
}

.mini-lock {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 8px;
  padding: 8px;
  border-radius: 8px;
  background: var(--gray-100);
  font-size: 11.5px;
  color: var(--gray-500);
}

.mini-lock .icon {
  width: 12px;
  height: 12px;
}

.mini-yellow {
  padding: 12px;
  border: 1px solid var(--note-border);
  border-radius: 12px;
  background: var(--note);
  line-height: 1.35;
  color: var(--note-foreground);
}

.mini-yellow.tight {
  margin-top: 8px;
  padding: 8px 10px;
  font-size: 11.5px;
}

.mini-pad {
  padding: 10px;
}

.mini-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 8px;
}

.mini-fields span {
  padding: 6px 8px;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  font-size: 11.5px;
}

.mini-submit {
  margin-top: 8px;
  padding: 6px;
  border-radius: 8px;
  background: var(--brand-500);
  text-align: center;
  font-size: 11.5px;
  font-weight: 600;
  color: #fff;
}

.mini-menu {
  width: 190px;
  margin-inline: auto;
  padding: 4px;
}

.mini-menu .mini-row {
  padding: 6px 8px;
}

.mini-menu .icon {
  color: var(--brand-700);
}

/* Movimento */
.float {
  animation: float 5s ease-in-out infinite;
}

.float-slow {
  animation: float 7s ease-in-out infinite;
}

@keyframes float {
  50% {
    transform: translateY(-6px);
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(26px);
  }
}

@supports (animation-timeline: view()) {
  .rise {
    animation: rise linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 26%;
  }
}

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

  .rise,
  .float,
  .float-slow,
  .pop-in,
  .pulse {
    animation: none;
  }

  .flow-dot {
    display: none;
  }
}

/* Tablet */
@media (max-width: 1160px) {
  .contact {
    display: none;
  }
}

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

  .cols-3:not(.pillars) {
    grid-template-columns: repeat(2, 1fr);
  }

  .cols-3:not(.pillars) > * {
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }

  .cols-3:not(.pillars) > :nth-child(2n) {
    border-right: 0;
  }

  .cols-3:not(.pillars) > :nth-last-child(-n + 2) {
    border-bottom: 0;
  }

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

  .cols-4 > * {
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }

  .cols-4 > :nth-child(2n) {
    border-right: 0;
  }

  .cols-4 > :nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .dark .cols-4 > * {
    border-color: var(--night-line);
  }

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

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

  .control-main {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

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

  .chips li:nth-child(3) {
    border-right: 0;
  }

  .chips li:nth-child(-n + 3) {
    border-bottom: 1px solid var(--line);
  }
}

/* Celular */
@media (max-width: 760px) {
  .pad {
    padding: 64px 16px 40px;
  }

  .pad-mock {
    padding: 0 12px 56px;
  }

  .hero-copy {
    padding: 56px 16px 0;
  }

  .site-header-inner {
    padding-inline: 16px;
  }

  .login-link {
    display: none;
  }

  .pillars,
  .cols-3:not(.pillars),
  .cols-4,
  .faq {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-scene svg {
    min-width: 0;
  }

  .pillars > *,
  .cols-3:not(.pillars) > *,
  .cols-4 > * {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .pillars > :last-child,
  .cols-3:not(.pillars) > :last-child,
  .cols-4 > :last-child {
    border-bottom: 0;
  }

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

  .chips li:nth-child(n) {
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }

  .chips li:nth-child(2n),
  .chips li:last-child {
    border-right: 0;
  }

  .chips li:last-child {
    grid-column: span 2;
    border-bottom: 0;
  }

  .app-rail,
  .inbox-list {
    display: none;
  }

  .inbox {
    height: 520px;
  }

  .faq {
    padding: 0 16px 56px;
  }

  .control-main,
  .control-side > div {
    padding: 24px 16px;
  }

  .cta {
    padding: 64px 16px;
  }

  .footer-main {
    flex-direction: column;
    padding: 40px 16px;
  }

  .footer-legal p {
    padding: 20px 16px;
  }

  .panel-area {
    padding: 14px;
  }

  .composer-hint {
    display: none;
  }

  .mock .hide-sm {
    display: none;
  }
}
