@font-face {
  font-family: "Poppins";
  src: url("/fonts/poppins-400.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("/fonts/poppins-500.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

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

@font-face {
  font-family: "Poppins";
  src: url("/fonts/poppins-700.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --night: #181410;
  --night-2: #1d1915;
  --night-ink: #ece5d8;
  --night-muted: #978c7d;
  --night-line: #352e28;
  --bone: #f5f1ea;
  --paper: #fcfaf6;
  --line: #e4dccf;
  --ink: #1b1714;
  --ink-2: #46403a;
  --muted: #8a8076;
  --clay: #bf552e;
  --clay-deep: #9c4322;
  --clay-soft: #e7c4ad;
  --sidebar-width: 256px;
  --topbar-height: 64px;
  --radius: 8px;
  font-family: "Poppins", ui-sans-serif, system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button:not(:disabled),
a {
  cursor: pointer;
}

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

svg {
  display: block;
}

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

.skip-link {
  position: fixed;
  left: 12px;
  top: 12px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.app-shell {
  display: flex;
  min-height: 100vh;
}

.blueprint {
  background-color: var(--night);
  background-image:
    linear-gradient(to right, rgba(236, 229, 216, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(236, 229, 216, 0.04) 1px, transparent 1px);
  background-size: 28px 28px;
}

.sidebar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  width: var(--sidebar-width);
  height: 100vh;
  flex: 0 0 var(--sidebar-width);
  flex-direction: column;
  padding: 20px 12px;
  border-right: 1px solid var(--night-line);
  color: var(--night-ink);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  margin: 0 8px 20px;
}

.brand-mark,
.brand-mark img {
  display: block;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
}

.brand-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  line-height: 1;
}

.wordmark {
  color: var(--night-ink);
  font-size: 15.7px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.wordmark span {
  color: var(--clay);
}

.product-label {
  margin-top: 5px;
  color: var(--night-muted);
  font-size: 7px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.sidebar-scroll {
  min-height: 0;
  flex: 1;
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-color: rgba(151, 140, 125, 0.34) transparent;
  scrollbar-width: thin;
}

.sidebar-scroll::-webkit-scrollbar {
  width: 8px;
}

.sidebar-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.sidebar-scroll::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 999px;
  background: rgba(151, 140, 125, 0.34);
  background-clip: content-box;
}

.nav-group + .nav-group {
  margin-top: 24px;
}

.nav-group.is-collapsed + .nav-group.is-collapsed {
  margin-top: 16.8px;
}

.nav-group-trigger {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 4px;
  padding: 6px 8px;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: rgba(151, 140, 125, 0.82);
  text-align: left;
  transition:
    color 150ms ease,
    background 150ms ease;
}

.nav-group-trigger:hover {
  background: var(--night-2);
  color: var(--night-ink);
}

.nav-group.has-active .nav-group-trigger {
  color: var(--night-ink);
}

.nav-group-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.nav-chevron {
  width: 14px;
  height: 14px;
  color: var(--night-muted);
  transition: transform 150ms ease;
}

.nav-group.is-collapsed .nav-chevron {
  transform: rotate(-90deg);
}

.nav-list {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-group.is-collapsed .nav-list,
.nav-group.is-collapsed .nav-empty {
  display: none;
}

.nav-link,
.sidebar-system-link {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 36px;
  padding: 8px 10px;
  border-radius: var(--radius);
  color: var(--night-muted);
  font-size: 14.4px;
  font-weight: 500;
  transition:
    color 150ms ease,
    background 150ms ease;
}

.nav-link svg,
.sidebar-system-link svg {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
}

.nav-link:hover,
.sidebar-system-link:hover {
  background: var(--night-2);
  color: var(--night-ink);
}

.nav-link:hover svg {
  color: var(--clay-soft);
}

.nav-link.is-active {
  background: var(--clay);
  color: #fffaf5;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.24);
}

.sidebar-system-link.is-active {
  background: var(--clay);
  color: #fffaf5;
}

.nav-empty {
  margin: 0;
  padding: 2px 8px;
  color: rgba(151, 140, 125, 0.7);
  font-size: 12px;
  line-height: 1.55;
}

.sidebar-footer {
  display: grid;
  gap: 9px;
  margin-top: 16px;
}

.docs-version {
  padding: 0 10px;
  color: rgba(151, 140, 125, 0.6);
  font-size: 10px;
}

.workspace {
  min-width: 0;
  flex: 1;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  height: var(--topbar-height);
  align-items: center;
  gap: 16px;
  padding: 0 28px;
  border-bottom: 1px solid var(--night-line);
  background: rgba(24, 20, 16, 0.97);
  color: var(--night-ink);
  backdrop-filter: blur(14px);
}

.menu-trigger,
.mobile-brand {
  display: none;
}

.search-wrap {
  position: relative;
  width: min(420px, 46vw);
  margin: 0 auto;
}

.search-wrap input {
  width: 100%;
  height: 38px;
  padding: 0 54px 0 38px;
  border: 1px solid var(--night-line);
  border-radius: var(--radius);
  outline: 0;
  background: rgba(29, 25, 21, 0.88);
  color: var(--night-ink);
  font-size: 13px;
  transition: border-color 150ms ease;
}

.search-wrap input::placeholder {
  color: var(--night-muted);
}

.search-wrap input:focus {
  border-color: rgba(215, 113, 74, 0.72);
}

.search-icon {
  position: absolute;
  top: 50%;
  left: 12px;
  z-index: 1;
  color: var(--night-muted);
  transform: translateY(-50%);
}

.search-icon svg {
  width: 16px;
  height: 16px;
}

.search-wrap kbd {
  position: absolute;
  top: 50%;
  right: 9px;
  padding: 2px 5px;
  border: 1px solid var(--night-line);
  border-radius: 5px;
  color: var(--night-muted);
  font-family: inherit;
  font-size: 9px;
  transform: translateY(-50%);
}

.search-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--night-line);
  border-radius: var(--radius);
  background: var(--night);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.search-results a,
.search-no-results {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 13px;
  color: var(--night-muted);
  font-size: 12px;
}

.search-results a:hover,
.search-results a:focus {
  background: var(--night-2);
  color: var(--night-ink);
  outline: 0;
}

.search-results small {
  color: rgba(151, 140, 125, 0.62);
}

.topbar-app-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--night-muted);
  font-size: 12px;
  font-weight: 600;
}

.topbar-app-link:hover {
  color: var(--clay-soft);
}

.topbar-app-link svg {
  width: 15px;
  height: 15px;
}

#conteudo {
  min-height: calc(100vh - var(--topbar-height));
  outline: 0;
}

.hero,
.placeholder-hero {
  position: relative;
  overflow: hidden;
  background: var(--night);
  color: var(--night-ink);
}

.hero {
  padding: clamp(58px, 7vw, 96px) clamp(28px, 5vw, 72px) 72px;
}

.hero::before,
.placeholder-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(236, 229, 216, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(236, 229, 216, 0.04) 1px, transparent 1px);
  background-size: 28px 28px;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  max-width: 1180px;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  align-items: center;
  gap: clamp(44px, 7vw, 100px);
  margin: 0 auto;
}

.eyebrow,
.section-kicker,
.placeholder-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--clay-soft);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.placeholder-kicker svg {
  width: 16px;
  height: 16px;
}

.eyebrow svg,
.section-kicker svg {
  width: 16px;
  height: 16px;
}

/* DOC-GUARD: Títulos e introduções dos cabeçalhos não impõem max-width;
   a quebra acompanha apenas o contêiner responsivo. Regra oficial:
   docs/ajuda/README.md. Alterar somente com autorização explícita do Bruno. */
.hero h1 {
  margin: 20px 0 0;
  font-size: clamp(43px, 5vw, 70px);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.04;
}

.hero-copy {
  margin: 24px 0 0;
  color: var(--night-muted);
  font-size: clamp(15px, 1.4vw, 17px);
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 42px;
  padding: 10px 15px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 650;
  transition:
    border-color 150ms ease,
    background 150ms ease,
    color 150ms ease,
    transform 150ms ease;
}

.primary-action {
  background: var(--clay);
  color: #fffaf5;
}

.primary-action:hover {
  background: var(--clay-deep);
  transform: translateY(-1px);
}

.secondary-action {
  border-color: var(--night-line);
  background: rgba(29, 25, 21, 0.82);
  color: var(--night-ink);
}

.secondary-action:hover {
  border-color: rgba(215, 113, 74, 0.55);
  color: var(--clay-soft);
}

.primary-action svg,
.secondary-action svg {
  width: 16px;
  height: 16px;
}

.system-illustration {
  position: relative;
  min-height: 370px;
  border: 1px solid var(--night-line);
  border-radius: var(--radius);
  background: rgba(16, 13, 11, 0.76);
  box-shadow: 0 36px 70px -38px rgba(0, 0, 0, 0.85);
}

.system-illustration::before {
  content: "";
  position: absolute;
  right: 26px;
  bottom: 0;
  width: 172px;
  height: 228px;
  border: 12px solid rgba(191, 85, 46, 0.2);
  border-bottom: 0;
  border-radius: 90px 90px 0 0;
}

.illustration-bar {
  display: flex;
  height: 48px;
  align-items: center;
  gap: 6px;
  padding: 0 16px;
  border-bottom: 1px solid var(--night-line);
}

.illustration-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--night-line);
}

.illustration-dot:first-child {
  background: var(--clay);
}

.illustration-body {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 82px 1fr;
  height: 320px;
}

.illustration-nav {
  padding: 18px 12px;
  border-right: 1px solid var(--night-line);
}

.illustration-logo,
.illustration-line,
.illustration-card {
  border-radius: 4px;
  background: rgba(236, 229, 216, 0.1);
}

.illustration-logo {
  width: 38px;
  height: 9px;
  margin: 0 0 24px;
  background: rgba(215, 113, 74, 0.5);
}

.illustration-line {
  width: 100%;
  height: 7px;
  margin-top: 13px;
}

.illustration-line.is-active {
  height: 24px;
  background: var(--clay);
}

.illustration-main {
  padding: 24px 20px;
}

.illustration-title {
  width: 46%;
  height: 14px;
  border-radius: 4px;
  background: rgba(236, 229, 216, 0.28);
}

.illustration-subtitle {
  width: 72%;
  height: 7px;
  margin-top: 9px;
  border-radius: 4px;
  background: rgba(151, 140, 125, 0.25);
}

.illustration-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 32px;
}

.illustration-card {
  height: 82px;
  border: 1px solid var(--night-line);
  background: rgba(29, 25, 21, 0.84);
}

.illustration-card:first-child {
  grid-column: 1 / -1;
  height: 70px;
}

.home-section {
  padding: 72px clamp(28px, 5vw, 72px);
}

.home-section.alt {
  border-block: 1px solid var(--line);
  background: var(--paper);
}

.section-inner {
  max-width: 1180px;
  margin: 0 auto;
}

.section-kicker {
  color: var(--clay-deep);
}

/* DOC-GUARD: Títulos e introduções das seções não impõem largura própria; a
   quebra acompanha automaticamente o contêiner disponível. Regra oficial:
   docs/ajuda/README.md. Alterar somente com autorização explícita do Bruno. */
.section-heading {
  margin: 14px 0 0;
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.16;
}

.section-intro {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.principles-grid,
.areas-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 34px;
}

.principle-card,
.area-card,
.placeholder-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 14px 34px -26px rgba(27, 23, 20, 0.32);
}

.principle-card {
  padding: 24px;
}

.principle-number {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: var(--radius);
  background: rgba(191, 85, 46, 0.11);
  color: var(--clay-deep);
  font-size: 12px;
  font-weight: 700;
}

.principle-card h3,
.area-card h3 {
  margin: 18px 0 0;
  font-size: 17px;
  font-weight: 600;
}

.principle-card p,
.area-card p {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

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

.area-card {
  position: relative;
  min-height: 180px;
  padding: 22px;
  overflow: hidden;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.area-card::after {
  content: "";
  position: absolute;
  right: -24px;
  bottom: -42px;
  width: 92px;
  height: 118px;
  border: 7px solid rgba(191, 85, 46, 0.08);
  border-bottom: 0;
  border-radius: 48px 48px 0 0;
}

.area-card:hover {
  border-color: rgba(191, 85, 46, 0.45);
  box-shadow: 0 18px 38px -26px rgba(27, 23, 20, 0.4);
  transform: translateY(-2px);
}

.area-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: var(--radius);
  background: rgba(191, 85, 46, 0.1);
  color: var(--clay-deep);
}

.area-icon svg {
  width: 18px;
  height: 18px;
}

.area-arrow {
  position: absolute;
  right: 18px;
  top: 18px;
  color: var(--muted);
}

.area-arrow svg {
  width: 16px;
  height: 16px;
}

.help-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 26px 28px;
  border: 1px solid var(--night-line);
  border-radius: var(--radius);
  background: var(--night);
  color: var(--night-ink);
}

.help-note h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
}

.help-note p {
  max-width: 760px;
  margin: 7px 0 0;
  color: var(--night-muted);
  font-size: 13px;
  line-height: 1.65;
}

.placeholder-hero {
  padding: 72px clamp(28px, 6vw, 88px) 78px;
}

.placeholder-hero-inner,
.placeholder-content {
  position: relative;
  z-index: 1;
  max-width: 940px;
  margin: 0 auto;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 48px;
  color: var(--night-muted);
  font-size: 12px;
}

.breadcrumbs a:hover {
  color: var(--clay-soft);
}

.breadcrumbs svg {
  width: 13px;
  height: 13px;
}

.placeholder-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  margin-bottom: 22px;
  border: 1px solid rgba(215, 113, 74, 0.28);
  border-radius: var(--radius);
  background: rgba(215, 113, 74, 0.12);
  color: var(--clay-soft);
}

.placeholder-icon svg {
  width: 22px;
  height: 22px;
}

.placeholder-hero h1 {
  margin: 12px 0 0;
  font-size: clamp(38px, 5vw, 62px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.placeholder-lead {
  margin: 20px 0 0;
  color: var(--night-muted);
  font-size: 16px;
  line-height: 1.75;
}

.placeholder-content {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: 48px 28px 80px;
}

.placeholder-panel {
  padding: 26px;
}

.placeholder-panel h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

.placeholder-panel p {
  margin: 10px 0 20px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.whatsapp-safety-wide {
  grid-column: 1 / -1;
}

.whatsapp-safety-list {
  margin: 12px 0 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.whatsapp-safety-list li + li {
  margin-top: 8px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--clay-deep);
  font-size: 13px;
  font-weight: 650;
}

.text-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.text-link svg {
  width: 15px;
  height: 15px;
}

.route-address {
  grid-column: 1 / -1;
  margin: 0;
  padding: 14px 18px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 11px;
}

.route-address code {
  color: var(--ink-2);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* DOC-GUARD: O fluxograma do CRM apresenta a ordem operacional, o losango de
   decisão e a convergência entre Demanda e Captação descritos em docs/crm/.
   Não sugerir matching ou visita obrigatórios para Captação. */
.roadmap-hero .placeholder-hero-inner {
  max-width: 1060px;
}

.roadmap-content {
  max-width: 1060px;
  margin: 0 auto;
  padding: 64px 28px 90px;
}

.roadmap-intro {
  padding-bottom: 38px;
  border-bottom: 1px solid var(--line);
}

.crm-flowchart {
  --flow-line: rgba(191, 85, 46, 0.46);
  margin-top: 42px;
  padding: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.flowchart-shared,
.flowchart-finish,
.flowchart-stage {
  display: grid;
  justify-items: center;
}

.flow-node {
  position: relative;
  z-index: 2;
  display: grid;
  width: min(500px, 100%);
  min-height: 72px;
  grid-template-columns: 42px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bone);
  transition:
    border-color 160ms ease,
    background 160ms ease,
    transform 160ms ease;
}

.flow-node:hover {
  border-color: rgba(191, 85, 46, 0.5);
  background: var(--paper);
  transform: translateY(-2px);
}

.flow-node-number {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 6px;
  background: rgba(191, 85, 46, 0.1);
  color: var(--clay-deep);
  font-size: 10px;
  font-weight: 700;
}

.flow-node-copy {
  display: grid;
  gap: 3px;
}

.flow-node-copy strong {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.flow-node-copy small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.flow-node-arrow {
  width: 16px;
  height: 16px;
  color: var(--clay-deep);
}

.flow-connector,
.flowchart-split-line {
  position: relative;
  z-index: 1;
  display: block;
  width: 1px;
  height: 30px;
  background: var(--flow-line);
}

.flow-connector::after,
.flowchart-split-line::after {
  content: "";
  position: absolute;
  left: -3px;
  bottom: 1px;
  width: 6px;
  height: 6px;
  border-right: 1px solid var(--clay-deep);
  border-bottom: 1px solid var(--clay-deep);
  transform: rotate(45deg);
}

.flow-connector.is-before-decision {
  margin: 0 auto;
}

.flow-decision {
  display: grid;
  width: 142px;
  height: 142px;
  place-items: center;
  margin: 0 auto;
  border: 1px solid rgba(191, 85, 46, 0.58);
  background: rgba(191, 85, 46, 0.08);
  transform: rotate(45deg);
}

.flow-decision > div {
  display: grid;
  width: 126px;
  gap: 6px;
  text-align: center;
  transform: rotate(-45deg);
}

.flow-decision small {
  color: var(--clay-deep);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.flow-decision strong {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
}

.flowchart-split-line {
  height: 42px;
  margin: 0 auto;
}

.flowchart-branches {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 72px;
  padding-top: 34px;
}

.flowchart-branches::before {
  content: "";
  position: absolute;
  left: 25%;
  right: 25%;
  top: 0;
  border-top: 1px solid var(--flow-line);
}

.flowchart-branch {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bone);
}

.flowchart-branch::before,
.flowchart-branch::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 1px;
  background: var(--flow-line);
}

.flowchart-branch::before {
  top: -34px;
  height: 34px;
}

.flowchart-branch::after {
  bottom: -34px;
  height: 34px;
}

.flowchart-branch header {
  display: grid;
  gap: 4px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.flowchart-branch header span {
  color: var(--clay-deep);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.flowchart-branch header small {
  color: var(--muted);
  font-size: 10px;
}

.flowchart-branch-body {
  display: grid;
  min-height: 214px;
  flex: 1;
  align-content: center;
  justify-items: center;
  padding-top: 18px;
}

.flowchart-branch .flow-node {
  min-height: 64px;
  grid-template-columns: 36px minmax(0, 1fr) 16px;
  gap: 11px;
  padding: 11px 12px;
  background: var(--paper);
}

.flowchart-branch .flow-node-number {
  width: 36px;
  height: 36px;
}

.flowchart-branch .flow-node-copy strong {
  font-size: 13px;
}

.flow-bypass {
  display: grid;
  width: 100%;
  place-items: center;
  padding: 22px 18px;
  border: 1px dashed rgba(191, 85, 46, 0.36);
  border-radius: var(--radius);
  background: var(--paper);
  text-align: center;
}

.flow-bypass svg {
  width: 19px;
  height: 19px;
  margin-bottom: 10px;
  color: var(--clay-deep);
}

.flow-bypass strong {
  font-size: 13px;
  font-weight: 600;
}

.flow-bypass p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.flowchart-merge-lines {
  position: relative;
  height: 64px;
}

.flowchart-merge-lines::before {
  content: "";
  position: absolute;
  left: 25%;
  right: 25%;
  top: 34px;
  border-top: 1px solid var(--flow-line);
}

.flowchart-merge-lines::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 34px;
  bottom: 0;
  width: 1px;
  background: var(--flow-line);
}

.journey-badge {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(191, 85, 46, 0.1);
  color: var(--clay-deep);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.journey-badge.is-dark {
  background: rgba(215, 113, 74, 0.14);
  color: var(--clay-soft);
}

.stage-hero .placeholder-hero-inner {
  max-width: 960px;
}

.stage-number {
  display: block;
  margin-bottom: 12px;
  color: rgba(151, 140, 125, 0.64);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.stage-content {
  display: grid;
  max-width: 960px;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 54px;
  margin: 0 auto;
  padding: 58px 28px 90px;
}

.stage-guide ul {
  display: grid;
  gap: 16px;
  margin: 30px 0 34px;
  padding: 0;
  list-style: none;
}

.stage-guide li {
  position: relative;
  padding: 0 0 16px 30px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.7;
}

.stage-guide li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 9px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--clay);
  box-shadow: 0 0 0 5px rgba(191, 85, 46, 0.1);
}

.stage-navigation {
  position: sticky;
  top: calc(var(--topbar-height) + 28px);
  align-self: start;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.stage-navigation-label {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.stage-navigation > strong {
  display: block;
  margin-top: 7px;
  font-size: 18px;
  font-weight: 600;
}

.stage-progress {
  height: 3px;
  margin: 16px 0 20px;
  overflow: hidden;
  border-radius: 99px;
  background: var(--line);
}

.stage-progress span {
  display: block;
  height: 100%;
  background: var(--clay);
}

.stage-navigation-links {
  display: grid;
  gap: 8px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.stage-navigation-links a {
  display: grid;
  gap: 3px;
  padding: 10px 11px;
  border-radius: 6px;
  background: var(--bone);
  transition: background 150ms ease;
}

.stage-navigation-links a:hover {
  background: rgba(191, 85, 46, 0.1);
}

.stage-navigation-links small {
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.stage-navigation-links span {
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 600;
}

.reveal {
  animation: reveal 560ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.reveal-delay {
  animation-delay: 90ms;
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
}

.noscript {
  position: fixed;
  inset: 16px 16px auto;
  z-index: 200;
  padding: 14px;
  border-radius: var(--radius);
  background: #fff4e9;
  color: #5b321f;
  text-align: center;
}

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

  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.72fr);
    gap: 44px;
  }
}

@media (max-width: 900px) {
  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    transform: translateX(-102%);
    transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
  }

  body.sidebar-open {
    overflow: hidden;
  }

  body.sidebar-open .sidebar {
    transform: translateX(0);
  }

  .sidebar-backdrop {
    position: fixed;
    inset: 0;
    z-index: 40;
    background: rgba(16, 13, 11, 0.58);
    backdrop-filter: blur(2px);
  }

  body.sidebar-open .sidebar-backdrop {
    display: block;
  }

  .menu-trigger {
    display: grid;
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    place-items: center;
    border: 1px solid var(--night-line);
    border-radius: var(--radius);
    background: var(--night-2);
    color: var(--night-ink);
  }

  .menu-trigger svg {
    width: 17px;
    height: 17px;
  }

  .mobile-brand {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--night-ink);
    font-size: 12px;
    font-weight: 600;
  }

  .mobile-mark,
  .mobile-mark img {
    display: block;
    width: 28px;
    height: 28px;
  }

  .search-wrap {
    width: auto;
    flex: 1;
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .system-illustration {
    min-height: 330px;
  }

  .illustration-body {
    height: 280px;
  }

  .principles-grid {
    grid-template-columns: 1fr;
  }

  .stage-content {
    grid-template-columns: 1fr;
  }

  .stage-content {
    gap: 34px;
  }

  .stage-navigation {
    position: static;
  }
}

@media (max-width: 640px) {
  .topbar {
    gap: 10px;
    padding: 0 16px;
  }

  .mobile-brand span:last-child,
  .topbar-app-link span:first-child,
  .search-wrap kbd {
    display: none;
  }

  .search-wrap input {
    padding-right: 12px;
  }

  .hero {
    padding: 54px 22px 58px;
  }

  .hero h1 {
    font-size: 42px;
  }

  .home-section {
    padding: 56px 22px;
  }

  .areas-grid {
    grid-template-columns: 1fr;
  }

  .help-note {
    align-items: flex-start;
    flex-direction: column;
  }

  .placeholder-hero {
    padding: 52px 22px 58px;
  }

  .breadcrumbs {
    margin-bottom: 36px;
  }

  .placeholder-content {
    grid-template-columns: 1fr;
    padding: 36px 22px 60px;
  }

  .roadmap-content,
  .stage-content {
    padding: 44px 22px 64px;
  }

  .crm-flowchart {
    margin-top: 32px;
    padding: 28px 14px;
  }

  .flow-node {
    grid-template-columns: 38px minmax(0, 1fr) 16px;
    gap: 11px;
    padding: 12px;
  }

  .flow-node-number {
    width: 38px;
    height: 38px;
  }

  .flowchart-branches {
    gap: 14px;
  }

  .flowchart-branch {
    padding: 10px;
  }

  .flowchart-branch header {
    min-height: 68px;
    align-content: center;
  }

  .flowchart-branch-body {
    min-height: 226px;
  }

  .flowchart-branch .flow-node {
    min-height: 88px;
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .flowchart-branch .flow-node-arrow {
    display: none;
  }

  .flow-bypass {
    min-height: 192px;
    padding: 16px 10px;
  }
}

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