/* ===========================================================================
   SolosHub — site institucional
   Um único CSS para todas as páginas (home, legais, 404). Sem build.

   Regras de marca herdadas do design system:
   1. SINAL ÚNICO — o iris é sinal, não fundo: botão primário, foco, estado.
   2. IRIS LEGÍVEL — #6962F0 reprova AA como texto sobre claro. Texto em iris
      usa --iris-text (claro) ou --iris-on-dark (escuro).
   3. CONTRASTE NEGATIVO — a página (#E4E4E7) é mais escura que a placa
      (#F4F4F5). A placa sobe por ser mais clara, não por sombra.
   4. O navy carrega a marca: header, hero, case e rodapé.
=========================================================================== */

/* --- Fontes --------------------------------------------------------------- */
@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/outfit-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/outfit-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* --- Tokens --------------------------------------------------------------- */
:root {
  color-scheme: light dark;

  /* Marca */
  --iris: #6962f0;
  --iris-hover: #7973ff;
  --iris-text: #524bde;       /* 5,6:1 sobre a página clara */
  --iris-on-dark: #a19df8;    /* texto iris sobre navy */
  --iris-bg: rgb(105 98 240 / 0.12);
  --iris-line: rgb(105 98 240 / 0.35);
  --navy: #091843;
  --navy-raised: #0f2257;
  --navy-line: rgb(255 255 255 / 0.12);
  --on-navy-1: #f5f5f7;
  --on-navy-2: #c5cadb;       /* 9,6:1 sobre o navy */
  --on-navy-3: #9aa2bd;       /* 6,4:1 sobre o navy */

  /* Superfícies */
  --page: #e4e4e7;
  --plate: #f4f4f5;
  --field: #ffffff;
  --line: #d4d4d8;
  --line-strong: #bcbcc2;

  /* Tinta */
  --ink-1: #212b36;
  --ink-2: #454f5b;
  --ink-3: #576270;           /* piso do corpo: 5,0:1 sobre a página */

  /* Estados (nunca como texto) */
  --ok: #22c55e;
  --wait: #fac858;

  /* Tipografia */
  --font-sans: "Outfit", -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --text-display: clamp(2.375rem, 1.5rem + 3.9vw, 4.5rem);
  --text-h2: clamp(1.875rem, 1.35rem + 2.2vw, 3rem);
  --text-h3: clamp(1.375rem, 1.2rem + 0.8vw, 1.75rem);
  --text-lead: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);

  /* Forma */
  --radius-sm: 4px;
  --radius-md: 6px;           /* botão */
  --radius-lg: 8px;           /* placa */

  /* Espaço */
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1200px;
  --section: clamp(4.5rem, 3rem + 6vw, 8.5rem);

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);   /* ease-out-quint */
  --dur: 200ms;

  /* Pilha */
  --z-sticky: 20;
  --z-overlay: 30;
}

@media (prefers-color-scheme: dark) {
  :root {
    --page: #0c0c10;
    --plate: #14141a;
    --field: #1c1c22;
    --line: #26262e;
    --line-strong: #3a3a44;
    --ink-1: #f5f5f7;
    --ink-2: #cecece;
    --ink-3: #9a9aa3;
    --iris-text: #a19df8;
    --iris-bg: rgb(105 98 240 / 0.16);
    --navy: #0a1a48;
  }
}

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

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink-1);
  background: var(--page);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

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

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

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

a {
  color: inherit;
}

address {
  font-style: normal;
}

:where(a, button, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--iris);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

.mono {
  font-family: var(--font-mono);
  font-size: 0.875em;
  letter-spacing: 0;
}

.tnum {
  font-variant-numeric: tabular-nums;
}

.wrap {
  width: 100%;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.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: absolute;
  left: 0.75rem;
  top: -4rem;
  z-index: var(--z-overlay);
  padding: 0.625rem 1rem;
  border-radius: var(--radius-md);
  background: var(--iris);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus {
  top: 0.75rem;
}

/* --- Botões ----------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.75rem 1.25rem;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--dur) var(--ease-out),
    border-color var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
}
.btn:active {
  transform: translateY(1px);
}
.btn svg {
  width: 18px;
  height: 18px;
  flex: none;
}
.btn-primary {
  background: var(--iris);
  color: #fff;
}
.btn-primary:hover {
  background: var(--iris-hover);
}
.btn-ghost {
  border-color: var(--line-strong);
  color: var(--ink-1);
}
.btn-ghost:hover {
  border-color: var(--ink-2);
  background: var(--plate);
}
.on-navy .btn-ghost,
.btn-ghost.on-navy {
  border-color: rgb(255 255 255 / 0.28);
  color: var(--on-navy-1);
}
.on-navy .btn-ghost:hover,
.btn-ghost.on-navy:hover {
  border-color: rgb(255 255 255 / 0.6);
  background: rgb(255 255 255 / 0.06);
}
.btn-sm {
  min-height: 40px;
  padding: 0.5rem 0.95rem;
  font-size: 0.9375rem;
}

/* --- Header ----------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  background: var(--navy);
  color: var(--on-navy-1);
  border-bottom: 1px solid var(--navy-line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 68px;
}
.brand {
  display: inline-flex;
  flex: none;
  padding-block: 0.5rem;
}
.brand img {
  width: 150px;
  height: auto;
}
.nav-desktop {
  display: none;
  margin-left: auto;
  align-items: center;
  gap: 0.25rem;
}
.nav-desktop a:not(.btn),
.nav-mobile nav a:not(.btn) {
  color: var(--on-navy-2);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9375rem;
  border-radius: var(--radius-md);
  transition: color var(--dur) var(--ease-out), background-color var(--dur) var(--ease-out);
}
.nav-desktop a:not(.btn) {
  padding: 0.5rem 0.8rem;
}
.nav-desktop a:not(.btn):hover {
  color: #fff;
  background: rgb(255 255 255 / 0.06);
}
.nav-desktop .btn {
  margin-left: 0.75rem;
}

/* Menu mobile: <details> funciona sem JS; o site.js só fecha ao navegar. */
.nav-mobile {
  margin-left: auto;
}
.nav-mobile summary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.5rem 0.85rem;
  border: 1px solid rgb(255 255 255 / 0.22);
  border-radius: var(--radius-md);
  font-weight: 500;
  font-size: 0.9375rem;
  cursor: pointer;
  list-style: none;
}
.nav-mobile summary::-webkit-details-marker {
  display: none;
}
.nav-mobile summary .bars {
  position: relative;
  width: 16px;
  height: 10px;
}
.nav-mobile summary .bars::before,
.nav-mobile summary .bars::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform var(--dur) var(--ease-out), top var(--dur) var(--ease-out);
}
.nav-mobile summary .bars::before {
  top: 0;
}
.nav-mobile summary .bars::after {
  top: 8px;
}
.nav-mobile[open] summary .bars::before {
  top: 4px;
  transform: rotate(45deg);
}
.nav-mobile[open] summary .bars::after {
  top: 4px;
  transform: rotate(-45deg);
}
.nav-mobile nav {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  display: grid;
  gap: 0.25rem;
  padding: 0.75rem var(--gutter) 1.25rem;
  background: var(--navy);
  border-bottom: 1px solid var(--navy-line);
}
.nav-mobile nav a:not(.btn) {
  padding: 0.8rem 0.25rem;
  font-size: 1.0625rem;
  border-bottom: 1px solid var(--navy-line);
  border-radius: 0;
}
.nav-mobile nav .btn {
  margin-top: 0.75rem;
}

@media (min-width: 900px) {
  .nav-desktop {
    display: flex;
  }
  .nav-mobile {
    display: none;
  }
}

/* --- Hero ------------------------------------------------------------------- */
.hero {
  position: relative;
  background: var(--navy);
  color: var(--on-navy-1);
  overflow: hidden;
  isolation: isolate;
}
/* Trama de pontos: a "grade" de onde o sistema é montado. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgb(255 255 255 / 0.09) 1px, transparent 1.2px);
  background-size: 24px 24px;
  mask-image: linear-gradient(100deg, transparent 30%, #000 75%);
  -webkit-mask-image: linear-gradient(100deg, transparent 30%, #000 75%);
}
.hero .wrap {
  display: grid;
  gap: clamp(3rem, 6vw, 4rem);
  padding-block: clamp(3.5rem, 2rem + 6vw, 7rem) clamp(4rem, 2rem + 7vw, 7.5rem);
}
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
  color: var(--on-navy-2);
  font-size: 0.9375rem;
  font-weight: 500;
}
.hero-kicker::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--iris);
  box-shadow: 0 0 0 4px rgb(105 98 240 / 0.25);
}
.hero h1 {
  font-size: var(--text-display);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.035em;
  max-width: 14ch;
}
.hero h1 em {
  font-style: normal;
  color: var(--iris-on-dark);
}
.hero-lead {
  margin-top: 1.75rem;
  max-width: 54ch;
  font-size: var(--text-lead);
  line-height: 1.55;
  color: var(--on-navy-2);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.25rem;
}

@media (min-width: 1000px) {
  .hero .wrap {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    align-items: center;
  }
}

/* Entrada do hero: só no carregamento, o conteúdo já nasce visível. */
@keyframes rise {
  from {
    transform: translate3d(0, 18px, 0);
  }
}
.hero-copy > * {
  animation: rise 900ms var(--ease-out) both;
}
.hero-copy > :nth-child(2) {
  animation-delay: 80ms;
}
.hero-copy > :nth-child(3) {
  animation-delay: 160ms;
}
.hero-copy > :nth-child(4) {
  animation-delay: 240ms;
}

/* --- Ilustração do hero: esteira + conversa -------------------------------- */
.hero-visual {
  position: relative;
  margin: 0;
  /* Maior que a altura do .chat (~230px): ele encosta só na borda de baixo do painel. */
  padding-bottom: 13rem;
  max-width: 560px;
  width: 100%;
  justify-self: center;
}
.panel {
  background: var(--navy-raised);
  border: 1px solid var(--navy-line);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  animation: rise 1000ms 200ms var(--ease-out) both;
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
  margin-bottom: 0.5rem;
  border-bottom: 1px solid var(--navy-line);
  font-size: 0.875rem;
  color: var(--on-navy-2);
}
.panel-head strong {
  color: var(--on-navy-1);
  font-weight: 600;
  font-size: 0.9375rem;
}
.panel-head .mono {
  color: var(--on-navy-3);
  font-size: 0.75rem;
}
.stages {
  list-style: none;
  margin: 0;
  padding: 0;
}
.stages li {
  display: grid;
  grid-template-columns: 22px 1fr auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0;
  font-size: 0.9375rem;
  color: var(--on-navy-2);
  border-bottom: 1px dashed var(--navy-line);
}
.stages li:last-child {
  border-bottom: 0;
}
.stages .dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid rgb(255 255 255 / 0.25);
  display: grid;
  place-items: center;
}
.stages .done .dot {
  background: var(--ok);
  border-color: var(--ok);
}
.stages .done .dot::after {
  content: "";
  width: 9px;
  height: 5px;
  border-left: 2px solid var(--navy);
  border-bottom: 2px solid var(--navy);
  transform: translateY(-1px) rotate(-45deg);
}
.stages .now {
  color: var(--on-navy-1);
}
.stages .now .dot {
  border-color: var(--iris);
  background: rgb(105 98 240 / 0.2);
}
.stages .now .dot::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--iris);
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse {
  50% {
    transform: scale(0.55);
    opacity: 0.6;
  }
}
.stages .tag {
  font-size: 0.75rem;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  border: 1px solid var(--navy-line);
  color: var(--on-navy-3);
  white-space: nowrap;
}
.stages .now .tag {
  border-color: rgb(105 98 240 / 0.55);
  color: var(--iris-on-dark);
}

.chat {
  position: absolute;
  right: -1.25rem;
  bottom: 0;
  width: min(300px, 78%);
  padding: 0.9rem;
  display: grid;
  gap: 0.5rem;
  background: #f4f4f5;
  color: #212b36;
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 48px -12px rgb(0 0 0 / 0.45);
  font-size: 0.875rem;
  line-height: 1.4;
  animation: rise 1000ms 650ms var(--ease-out) both;
}
.chat-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid #d4d4d8;
  font-size: 0.8125rem;
  font-weight: 600;
}
.chat-head .avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--navy);
  display: grid;
  place-items: center;
}
.chat-head .avatar img {
  width: 14px;
}
.chat-head small {
  margin-left: auto;
  font-weight: 500;
  color: #576270;
}
.bubble {
  max-width: 88%;
  padding: 0.5rem 0.7rem;
  border-radius: 10px;
}
.bubble.them {
  justify-self: end;
  background: #dcd9ff;
  border-bottom-right-radius: 3px;
}
.bubble.us {
  background: #fff;
  border: 1px solid #e4e4e7;
  border-bottom-left-radius: 3px;
}
.chat .bubble:nth-of-type(2) {
  animation: rise 700ms 1300ms var(--ease-out) both;
}

@media (max-width: 520px) {
  .hero-visual {
    padding-bottom: 14rem;
  }
  .chat {
    right: 0;
    width: 86%;
  }
}
/* Em telas bem estreitas as bolhas quebram em mais linhas e o .chat cresce. */
@media (max-width: 359px) {
  .hero-visual {
    padding-bottom: 16rem;
  }
}

/* --- Faixa de entregas ------------------------------------------------------ */
.deliver-strip {
  border-bottom: 1px solid var(--line);
  background: var(--plate);
}
.deliver-strip ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.75rem;
  margin: 0;
  padding: 1.25rem 0;
  list-style: none;
  color: var(--ink-2);
  font-weight: 500;
  font-size: 0.9375rem;
}
.deliver-strip li {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.deliver-strip li::before {
  content: "";
  width: 5px;
  height: 5px;
  background: var(--line-strong);
  transform: rotate(45deg);
}

/* --- Seções ----------------------------------------------------------------- */
.section {
  padding-block: var(--section);
}
.section-head {
  display: grid;
  gap: 1.25rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.section-head h2 {
  font-size: var(--text-h2);
  max-width: 20ch;
}
.section-head p {
  max-width: 58ch;
  color: var(--ink-2);
  font-size: var(--text-lead);
}
@media (min-width: 900px) {
  .section-head.split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: end;
    gap: 3rem;
  }
}

/* --- Frentes de serviço ----------------------------------------------------- */
.fronts {
  display: grid;
  gap: 1rem;
}
@media (min-width: 960px) {
  .fronts {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  }
}
.front {
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 1rem + 2.5vw, 3rem);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.front-web {
  background: var(--plate);
  border: 1px solid var(--line);
}
.front-ai {
  background: var(--navy);
  color: var(--on-navy-1);
}
.front h3 {
  font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem);
  letter-spacing: -0.03em;
}
.front > p {
  max-width: 50ch;
  color: var(--ink-2);
  font-size: 1.0625rem;
}
.front-ai > p {
  color: var(--on-navy-2);
}
.front .glyph {
  width: 44px;
  height: 44px;
  color: var(--iris-text);
}
.front-ai .glyph {
  color: var(--iris-on-dark);
}
.deliverables {
  margin: auto 0 0;
  padding: 1.25rem 0 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  column-gap: 1.5rem;
}
.deliverables li {
  padding: 0.7rem 0;
  border-top: 1px solid var(--line);
  font-weight: 500;
  font-size: 0.9875rem;
}
.front-ai .deliverables li {
  border-top-color: var(--navy-line);
}
.deliverables li span {
  display: block;
  margin-top: 0.15rem;
  font-weight: 400;
  font-size: 0.9375rem;
  color: var(--ink-3);
}
.front-ai .deliverables li span {
  color: var(--on-navy-3);
}

/* --- Processo (sequência real, por isso numerada) ---------------------------- */
.process {
  background: var(--plate);
  border-block: 1px solid var(--line);
}
.steps {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.step {
  position: relative;
  display: grid;
  grid-template-columns: 48px 1fr;
  align-content: start;
  gap: 0 1.25rem;
  padding-bottom: 2.5rem;
}
.step:last-child {
  padding-bottom: 0;
}
/* Linha que costura as etapas */
.step::before {
  content: "";
  position: absolute;
  left: 23px;
  top: 48px;
  bottom: 0;
  width: 2px;
  background: var(--line);
}
.step:last-child::before {
  display: none;
}
.step-n {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--page);
  border: 1px solid var(--line-strong);
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.9375rem;
  color: var(--ink-1);
}
.step:last-child .step-n {
  background: var(--iris);
  border-color: var(--iris);
  color: #fff;
}
.step h3 {
  font-size: var(--text-h3);
  padding-top: 0.55rem;
}
.step p {
  margin-top: 0.6rem;
  color: var(--ink-2);
  max-width: 44ch;
}
.step .out {
  margin-top: 1rem;
  font-size: 0.9375rem;
  color: var(--ink-3);
}
.step .out b {
  color: var(--ink-1);
  font-weight: 600;
}
@media (min-width: 1000px) {
  .steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2rem;
  }
  .step {
    grid-template-columns: 1fr;
    padding-bottom: 0;
  }
  .step::before {
    left: 48px;
    right: -2rem;
    top: 23px;
    bottom: auto;
    width: auto;
    height: 2px;
  }
  .step h3 {
    padding-top: 1.5rem;
  }
}

/* --- Case ------------------------------------------------------------------- */
.case {
  background: var(--navy);
  color: var(--on-navy-1);
  overflow: hidden;
}
.case .section-head p {
  color: var(--on-navy-2);
}
.case-grid {
  display: grid;
  gap: clamp(2.5rem, 5vw, 4rem);
}
@media (min-width: 1040px) {
  .case-grid {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    align-items: start;
  }
}
.features {
  margin: 0;
  display: grid;
}
.features div {
  padding: 1.1rem 0;
  border-top: 1px solid var(--navy-line);
}
.features div:last-child {
  border-bottom: 1px solid var(--navy-line);
}
.features dt {
  font-weight: 600;
  font-size: 1.125rem;
}
.features dd {
  margin: 0.3rem 0 0;
  color: var(--on-navy-2);
  max-width: 48ch;
}
.case-note {
  margin-top: 1.75rem;
  color: var(--on-navy-3);
  font-size: 0.9375rem;
  max-width: 46ch;
}

/* Janela do produto (ilustração, não captura) */
.app {
  margin: 0;
  border-radius: var(--radius-lg);
  border: 1px solid rgb(255 255 255 / 0.14);
  background: #e4e4e7;
  color: #212b36;
  overflow: hidden;
  box-shadow: 0 40px 80px -30px rgb(0 0 0 / 0.6);
}
.app-bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 0.9rem;
  background: #f4f4f5;
  border-bottom: 1px solid #d4d4d8;
}
.app-bar i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #d4d4d8;
}
.app-bar span {
  margin-left: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #576270;
}
.app-body {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  min-height: 360px;
}
.app-side {
  background: var(--navy);
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 0.9rem;
  padding: 0.9rem 0;
}
.app-side img {
  width: 24px;
}
.app-side i {
  width: 22px;
  height: 22px;
  border-radius: 5px;
  background: rgb(255 255 255 / 0.12);
}
.app-side i.on {
  background: var(--iris);
}
.app-main {
  padding: 1rem;
  display: grid;
  align-content: start;
  gap: 0.9rem;
  min-width: 0;
}
.app-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  font-weight: 600;
}
.app-title small {
  font-weight: 500;
  font-size: 0.8125rem;
  color: #576270;
}
.board {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.6rem;
  overflow: hidden;
}
.col {
  background: #f4f4f5;
  border-radius: 6px;
  padding: 0.6rem;
  display: grid;
  align-content: start;
  gap: 0.5rem;
  min-height: 250px;
  min-width: 0;
}
.col h4 {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0;
  color: #454f5b;
  display: flex;
  justify-content: space-between;
}
.card-mini {
  background: #fff;
  border: 1px solid #e4e4e7;
  border-radius: 5px;
  padding: 0.55rem;
  display: grid;
  gap: 0.35rem;
  min-width: 0;
  overflow: hidden;
}
.card-mini b,
.card-mini s {
  display: block;
  height: 6px;
  border-radius: 3px;
  background: #d4d4d8;
  text-decoration: none;
}
.card-mini b {
  width: 80%;
  background: #bcbcc2;
}
.card-mini s {
  width: 55%;
}
.card-mini u {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  text-decoration: none;
  font-size: 0.6875rem;
  color: #576270;
  white-space: nowrap;
  overflow: hidden;
  min-width: 0;
}
.card-mini u::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c, #bcbcc2);
}
/* Cor do status via classe: a CSP (sem 'unsafe-inline') bloqueia style="". */
.card-mini u.st-ok { --c: #22c55e; }
.card-mini u.st-wait { --c: #fac858; }
.card-mini u.st-edit { --c: #6962f0; }
.card-mini.hl {
  border-color: var(--iris);
  box-shadow: 0 0 0 3px rgb(105 98 240 / 0.18);
}
.app-assist {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.7rem 0.8rem;
  background: #fff;
  border: 1px solid #d4d4d8;
  border-radius: 6px;
  font-size: 0.8125rem;
  line-height: 1.45;
}
.app-assist .avatar {
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--navy);
  display: grid;
  place-items: center;
}
.app-assist .avatar img {
  width: 14px;
}
@media (max-width: 640px) {
  /* Duas colunas largas o bastante para "aguardando"; mantém a do card em destaque (3ª). */
  .board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .board .col:nth-child(1),
  .board .col:nth-child(n + 4) {
    display: none;
  }
  .card-mini u {
    text-overflow: ellipsis;
  }
}
@media (max-width: 359px) {
  .col {
    padding: 0.45rem;
  }
  .card-mini {
    padding: 0.4rem;
  }
  .card-mini u {
    font-size: 0.625rem;
  }
  .app-body {
    grid-template-columns: 40px minmax(0, 1fr);
  }
}

/* --- Stack ------------------------------------------------------------------ */
.stack-grid {
  display: grid;
  gap: 2.5rem;
}
@media (min-width: 900px) {
  .stack-grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 4rem;
  }
}
.stack-grid h2 {
  font-size: var(--text-h2);
  max-width: 14ch;
}
.stack-grid > div > p {
  margin-top: 1.25rem;
  color: var(--ink-2);
  max-width: 44ch;
}
.stack {
  margin: 0;
  display: grid;
}
.stack div {
  display: grid;
  grid-template-columns: 8.5rem 1fr;
  gap: 1rem;
  padding: 0.95rem 0;
  border-top: 1px solid var(--line);
}
.stack div:last-child {
  border-bottom: 1px solid var(--line);
}
.stack dt {
  color: var(--ink-3);
  font-weight: 500;
}
.stack dd {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--ink-1);
}
@media (max-width: 480px) {
  .stack div {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }
}

/* --- Contato ---------------------------------------------------------------- */
.contact {
  border-top: 1px solid var(--line);
}
.contact-grid {
  display: grid;
  gap: 3rem;
}
@media (min-width: 960px) {
  .contact-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 4rem;
    align-items: start;
  }
}
.contact h2 {
  font-size: clamp(2.125rem, 1.4rem + 3vw, 3.75rem);
  letter-spacing: -0.035em;
  max-width: 13ch;
}
.contact-lead {
  margin-top: 1.5rem;
  color: var(--ink-2);
  font-size: var(--text-lead);
  max-width: 44ch;
}
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}
.contact-direct {
  margin-top: 2.5rem;
  display: grid;
  gap: 0.35rem;
  font-size: 1.125rem;
}
.contact-direct a {
  color: var(--ink-1);
  font-weight: 500;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 4px;
}
.contact-direct a:hover {
  text-decoration-color: var(--iris);
}

.ficha {
  background: var(--plate);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 1rem + 1.5vw, 2rem);
}
.ficha h3 {
  font-size: 1.25rem;
  letter-spacing: -0.015em;
}
.ficha > p {
  margin-top: 0.4rem;
  font-size: 0.9375rem;
  color: var(--ink-3);
}
.ficha dl {
  margin: 1.25rem 0 0;
  display: grid;
}
.ficha dl div {
  display: grid;
  grid-template-columns: 9rem minmax(0, 1fr);
  gap: 1rem;
  padding: 0.8rem 0;
  border-top: 1px solid var(--line);
}
.ficha dt {
  color: var(--ink-3);
  font-size: 0.9375rem;
}
.ficha dd {
  margin: 0;
  font-weight: 500;
  overflow-wrap: anywhere;
}
.ficha dd a {
  color: var(--iris-text);
  text-underline-offset: 3px;
}
.ficha dd small {
  display: block;
  font-weight: 400;
  font-size: 0.875rem;
  color: var(--ink-3);
}
@media (max-width: 520px) {
  .ficha dl div {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }
}

/* --- Footer ----------------------------------------------------------------- */
.site-footer {
  background: var(--navy);
  color: var(--on-navy-2);
  font-size: 0.9375rem;
}
.site-footer .wrap {
  display: grid;
  gap: 2.5rem;
  padding-block: clamp(3rem, 5vw, 4.5rem) 2rem;
}
.footer-top {
  display: grid;
  gap: 2rem;
}
@media (min-width: 860px) {
  .footer-top {
    grid-template-columns: 1.2fr 1fr 0.8fr;
    gap: 3rem;
  }
}
.footer-brand img {
  width: 150px;
  height: auto;
}
.footer-brand p {
  margin-top: 1rem;
  max-width: 34ch;
}
.site-footer h2 {
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--on-navy-1);
  margin-bottom: 0.75rem;
}
.footer-company p + p {
  margin-top: 0.35rem;
}
.site-footer a {
  color: var(--on-navy-1);
  text-decoration-color: rgb(255 255 255 / 0.3);
  text-underline-offset: 3px;
}
.site-footer a:hover {
  text-decoration-color: var(--iris-on-dark);
}
.footer-links ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.5rem;
}
.footer-links a {
  text-decoration: none;
}
.footer-links a:hover {
  text-decoration: underline;
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--navy-line);
  color: var(--on-navy-3);
  font-size: 0.875rem;
}

/* --- Páginas de texto longo (legais) ---------------------------------------
   Uso:
   <main id="conteudo">
     <header class="page-head"><div class="wrap">
       <p class="page-head-meta">Documento legal</p>
       <h1>Política de privacidade</h1>
       <p class="page-head-lead">...</p>
       <p class="page-head-meta">Última atualização: 23 de setembro de 2026</p>
     </div></header>
     <div class="wrap"><article class="prose"> ... </article></div>
   </main>
--------------------------------------------------------------------------- */
.page-head {
  background: var(--navy);
  color: var(--on-navy-1);
}
.page-head .wrap {
  padding-block: clamp(3rem, 2rem + 4vw, 5rem);
}
.page-head h1 {
  font-size: clamp(2.125rem, 1.5rem + 2.8vw, 3.5rem);
  letter-spacing: -0.03em;
  max-width: 20ch;
}
.page-head-lead {
  margin-top: 1rem;
  max-width: 60ch;
  font-size: var(--text-lead);
  color: var(--on-navy-2);
}
.page-head-meta {
  margin-top: 1.25rem;
  color: var(--on-navy-3);
  font-size: 0.9375rem;
}
.page-head-meta:first-child {
  margin: 0 0 1rem;
}

.prose {
  max-width: 70ch;
  padding-block: clamp(2.5rem, 2rem + 3vw, 4.5rem) var(--section);
  color: var(--ink-2);
  font-size: 1.0625rem;
  line-height: 1.7;
}
.prose > * + * {
  margin-top: 1.1em;
}
.prose h2 {
  margin-top: 2.4em;
  font-size: clamp(1.375rem, 1.2rem + 0.7vw, 1.75rem);
  line-height: 1.2;
  color: var(--ink-1);
  scroll-margin-top: 6rem;
}
.prose h3 {
  margin-top: 1.9em;
  font-size: 1.1875rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--ink-1);
}
.prose h2 + *,
.prose h3 + * {
  margin-top: 0.6em;
}
.prose > :first-child {
  margin-top: 0;
}
.prose strong {
  color: var(--ink-1);
  font-weight: 600;
}
.prose a {
  color: var(--iris-text);
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}
.prose ul,
.prose ol {
  padding-left: 1.4em;
}
.prose li + li {
  margin-top: 0.45em;
}
.prose li::marker {
  color: var(--ink-3);
}
.prose code {
  font-family: var(--font-mono);
  font-size: 0.875em;
  padding: 0.1em 0.35em;
  border-radius: var(--radius-sm);
  background: var(--plate);
  border: 1px solid var(--line);
}
.prose hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin-block: 2.5em;
}
.prose .table-wrap {
  overflow-x: auto;
}
.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  line-height: 1.5;
}
.prose th,
.prose td {
  text-align: left;
  vertical-align: top;
  padding: 0.7rem 0.75rem 0.7rem 0;
  border-bottom: 1px solid var(--line);
}
.prose th {
  color: var(--ink-1);
  font-weight: 600;
}
/* Caixa de destaque: fundo tingido + borda inteira (nunca faixa lateral). */
.prose .note {
  padding: 1.1rem 1.25rem;
  border-radius: var(--radius-lg);
  background: var(--iris-bg);
  border: 1px solid var(--iris-line);
  color: var(--ink-1);
}
.prose .note > * + * {
  margin-top: 0.6em;
}
/* Sumário opcional no topo do documento */
.prose .toc {
  padding: 1.1rem 1.25rem;
  border-radius: var(--radius-lg);
  background: var(--plate);
  border: 1px solid var(--line);
  font-size: 0.9375rem;
}
.prose .toc ol {
  margin: 0.5rem 0 0;
}
.prose .toc a {
  color: var(--ink-1);
  text-decoration: none;
}
.prose .toc a:hover {
  text-decoration: underline;
}
/* Bloco de dados cadastrais dentro de um documento */
.prose dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.5rem 1.5rem;
}
.prose dt {
  color: var(--ink-3);
}
.prose dd {
  margin: 0;
  color: var(--ink-1);
}
@media (max-width: 520px) {
  .prose dl {
    grid-template-columns: 1fr;
    gap: 0.1rem;
  }
  .prose dd + dt {
    margin-top: 0.6rem;
  }
}

/* --- 404 -------------------------------------------------------------------- */
.not-found {
  background: var(--navy);
  color: var(--on-navy-1);
  min-height: 62vh;
  display: grid;
  align-items: center;
}
.not-found .wrap {
  padding-block: clamp(4rem, 3rem + 6vw, 8rem);
}
.not-found .code {
  font-family: var(--font-mono);
  color: var(--iris-on-dark);
  font-size: 0.9375rem;
}
.not-found h1 {
  margin-top: 1rem;
  font-size: var(--text-display);
  letter-spacing: -0.035em;
  max-width: 14ch;
}
.not-found p {
  margin-top: 1.25rem;
  max-width: 48ch;
  color: var(--on-navy-2);
  font-size: var(--text-lead);
}

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

/* --- Impressão ----------------------------------------------------------------- */
@media print {
  .site-header,
  .skip-link {
    display: none;
  }
  .page-head,
  .site-footer {
    background: none;
    color: #000;
  }
}

/* Link de volta à home, no topo das páginas legais */
.page-head-back {
  display: inline-block;
  margin-bottom: 0.75rem;
  color: var(--on-navy-2);
  font-size: 0.9375rem;
  text-underline-offset: 3px;
}
.page-head-back:hover {
  color: var(--on-navy-1);
}
.prose .toc-title {
  display: block;
  color: var(--ink-1);
  font-weight: 600;
}
