/* =========================================================
   JNA Analytics — Design System (V4)
   Tecnologia na medida exata.
   ---------------------------------------------------------
   Estrutura:
   1. Tokens          6. Seções da home
   2. Base            7. Projetos / cases
   3. Layout          8. Demos (app shell, gráficos, planilha, checklist)
   4. Componentes     9. Utilitários / animação
   5. Header/Footer  10. Responsivo
   ========================================================= */

/* 1. TOKENS ------------------------------------------------ */
:root {
  /* Marca */
  --ink: #0A1826;            /* fundo escuro principal */
  --navy: #11263B;           /* azul-marinho da marca */
  --navy-2: #183451;
  --teal: #0B7A6E;           /* ação (AA com texto branco) */
  --teal-600: #0E9384;       /* série principal dos gráficos */
  --teal-300: #64CBBD;       /* destaque sobre fundo escuro */
  --teal-50: #E7F5F2;
  --blue: #4A6FD1;           /* série secundária */
  --amber: #D9822B;          /* atenção / alerta */
  --amber-50: #FBF0E3;
  --red: #C2413A;
  --red-50: #FBEAE8;
  --green: #2E8B57;
  --green-50: #E6F4EC;

  /* Neutros */
  --paper: #F5F4EF;          /* off-white quente: assinatura das seções claras */
  --white: #FFFFFF;
  --line: #E3E1D9;
  --line-dark: rgba(255,255,255,.10);
  --text: #14212E;
  --text-2: #4A5866;
  --text-3: #6E7B88;
  --on-dark: #E9EEF2;
  --on-dark-2: #A9B6C2;

  /* Tipografia */
  --f-display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --f-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "Cascadia Code", Consolas, monospace;

  /* Escala */
  --fs-hero: clamp(2.4rem, 5.4vw, 4.4rem);
  --fs-h2: clamp(1.9rem, 3.6vw, 2.9rem);
  --fs-h3: clamp(1.15rem, 1.6vw, 1.35rem);
  --fs-lead: clamp(1.05rem, 1.4vw, 1.25rem);

  /* Espaço e forma */
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(72px, 10vw, 128px);
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(10,24,38,.06), 0 8px 24px rgba(10,24,38,.06);
  --shadow-lg: 0 2px 4px rgba(10,24,38,.08), 0 24px 48px rgba(10,24,38,.12);
  --ease: cubic-bezier(.2,.7,.2,1);
  --header-h: 68px;
}

/* 2. BASE -------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--f-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
h1, h2, h3, h4 { font-family: var(--f-display); line-height: 1.12; letter-spacing: -0.02em; font-weight: 600; }
h1 { font-size: var(--fs-hero); letter-spacing: -0.035em; }
h2 { font-size: var(--fs-h2); letter-spacing: -0.03em; }
h3 { font-size: var(--fs-h3); }
p { text-wrap: pretty; }
strong { font-weight: 600; }
:focus-visible { outline: 2px solid var(--teal-300); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--teal-300); color: var(--ink); }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--white); color: var(--ink); padding: 10px 16px; border-radius: var(--radius-sm);
  font-weight: 600; transition: top .2s;
}
.skip-link:focus { top: 12px; }
.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; }

/* 3. LAYOUT ------------------------------------------------ */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { max-width: 860px; }
.section { padding: var(--section) 0; position: relative; }
.section--tight { padding: clamp(48px, 7vw, 80px) 0; }

/* Variações de fundo — alternância claro/escuro */
.s-paper { background: var(--paper); }
.s-white { background: var(--white); }
.s-dark {
  background-color: var(--ink);
  color: var(--on-dark);
  /* grade fina de "planta técnica" */
  background-image:
    linear-gradient(var(--line-dark) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-dark) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: -1px -1px;
}
.s-dark .lead, .s-dark p { color: var(--on-dark-2); }
.s-dark h1, .s-dark h2, .s-dark h3, .s-dark h4, .s-dark strong { color: var(--white); }
.s-navy { background: var(--navy); color: var(--on-dark); }
.s-navy p { color: var(--on-dark-2); }
.s-navy h2, .s-navy h3, .s-navy strong { color: var(--white); }

.grid { display: grid; gap: clamp(16px, 2.4vw, 28px); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split--top { align-items: start; }

/* Cabeçalho de seção */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-mono); font-size: .76rem; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase; color: var(--teal);
  margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; }
.s-dark .eyebrow, .s-navy .eyebrow { color: var(--teal-300); }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head h2 + p, .section-head .lead { margin-top: 18px; }
.lead { font-size: var(--fs-lead); color: var(--text-2); line-height: 1.6; }
.muted { color: var(--text-3); }
.mono { font-family: var(--f-mono); }

/* 4. COMPONENTES ------------------------------------------- */
/* Botões */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px; border-radius: 999px;
  font-weight: 600; font-size: .98rem; line-height: 1.2; white-space: nowrap;
  border: 1.5px solid transparent;
  transition: background .2s, color .2s, border-color .2s, transform .2s var(--ease), box-shadow .2s;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--teal); color: var(--white); }
.btn-primary:hover { background: #096A5F; box-shadow: 0 6px 18px rgba(11,122,110,.28); }
.s-dark .btn-primary, .s-navy .btn-primary, .hero .btn-primary { background: var(--teal-300); color: var(--ink); }
.s-dark .btn-primary:hover, .s-navy .btn-primary:hover, .hero .btn-primary:hover { background: #7FD8CC; box-shadow: 0 6px 22px rgba(100,203,189,.25); }
.btn-ghost { border-color: var(--line); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--text); }
.s-dark .btn-ghost, .s-navy .btn-ghost, .hero .btn-ghost { border-color: rgba(255,255,255,.25); color: var(--white); }
.s-dark .btn-ghost:hover, .s-navy .btn-ghost:hover, .hero .btn-ghost:hover { border-color: var(--white); }
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: .9rem; }
.btn-lg { min-height: 56px; padding: 16px 28px; font-size: 1.05rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--teal); }
.link-arrow svg { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }
.s-dark .link-arrow, .s-navy .link-arrow { color: var(--teal-300); }

/* Etiquetas */
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--f-mono); font-size: .7rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 999px; background: var(--teal-50); color: var(--teal);
}
.tag--demo { background: var(--amber-50); color: #8A4E0F; }
.tag--dark { background: rgba(100,203,189,.12); color: var(--teal-300); }
.tag--muted { background: #EEEDE7; color: var(--text-2); }

/* Cards */
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(22px, 2.6vw, 32px);
  transition: border-color .25s, transform .25s var(--ease), box-shadow .25s;
}
.card h3 { margin-bottom: 10px; }
.card p { color: var(--text-2); }
a.card:hover, .card--hover:hover { border-color: #C9C6BA; transform: translateY(-3px); box-shadow: var(--shadow); }
.s-dark .card { background: rgba(255,255,255,.03); border-color: var(--line-dark); }
.s-dark .card p { color: var(--on-dark-2); }

.icon-box {
  width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center;
  background: var(--teal-50); color: var(--teal); margin-bottom: 18px;
}
.icon-box svg { width: 22px; height: 22px; }
.s-dark .icon-box { background: rgba(100,203,189,.1); color: var(--teal-300); }

/* Checklist de texto */
.ticks { list-style: none; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 28px; color: var(--text-2); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .5em; width: 14px; height: 8px;
  border-left: 2px solid var(--teal); border-bottom: 2px solid var(--teal); transform: rotate(-45deg);
}
.s-dark .ticks li, .s-navy .ticks li, .hero .ticks li { color: var(--on-dark-2); }
.hero .offer .fine { color: var(--on-dark-2); }
.s-dark .ticks li::before, .s-navy .ticks li::before, .hero .ticks li::before { border-color: var(--teal-300); }

/* Aviso de demonstração */
.demo-notice {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--amber-50); border: 1px solid #F0D7B8; color: #6B3D0B;
  border-radius: var(--radius-sm); padding: 12px 16px; font-size: .9rem;
}
.demo-notice svg { width: 18px; height: 18px; flex: none; margin-top: 2px; }

/* Breadcrumb */
.breadcrumb { font-family: var(--f-mono); font-size: .75rem; letter-spacing: .04em; color: var(--on-dark-2); display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb span[aria-hidden] { opacity: .5; }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 56px 20px 24px; position: relative;
  font-family: var(--f-display); font-weight: 600; font-size: 1.08rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 24px; top: 50%; width: 12px; height: 12px; margin-top: -8px;
  border-right: 2px solid var(--text-3); border-bottom: 2px solid var(--text-3); transform: rotate(45deg);
  transition: transform .25s var(--ease);
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details > div { padding: 0 24px 22px; color: var(--text-2); }

/* Detalhes técnicos (opcional) */
.tech-details { border: 1px dashed #C9C6BA; border-radius: var(--radius); background: transparent; }
.tech-details summary { cursor: pointer; list-style: none; padding: 18px 22px; display: flex; align-items: center; gap: 12px; font-weight: 600; }
.tech-details summary::-webkit-details-marker { display: none; }
.tech-details summary .mono { font-size: .78rem; color: var(--teal); }
.tech-details summary::after { content: "+"; margin-left: auto; font-family: var(--f-mono); font-size: 1.2rem; color: var(--text-3); }
.tech-details[open] summary::after { content: "−"; }
.tech-details .tech-body { padding: 0 22px 22px; display: grid; gap: 18px; }
.tech-details dl { display: grid; grid-template-columns: 180px 1fr; gap: 10px 20px; font-size: .94rem; }
.tech-details dt { font-family: var(--f-mono); font-size: .78rem; color: var(--text-3); text-transform: uppercase; letter-spacing: .06em; padding-top: 3px; }
.tech-details dd { color: var(--text-2); }

/* 5. HEADER / FOOTER --------------------------------------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  color: var(--white);
}
/* O fundo desfocado fica num pseudo-elemento, NUNCA no próprio .site-header.
   backdrop-filter (assim como filter/transform) transforma o elemento no
   "containing block" dos filhos com position: fixed. No header, isso prendia o
   menu mobile (.nav, fixed) aos 62px do cabeçalho: no iPhone e no Android só
   "Início" aparecia. Como irmão das opções, o ::before não afeta o menu. */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: transparent; box-shadow: none;
  transition: background .3s, box-shadow .3s;
}
.site-header.is-solid::before, .site-header.is-open::before {
  background: rgba(10,24,38,.92); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  box-shadow: 0 1px 0 var(--line-dark);
}
.site-header .container { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; flex: none; }
.brand-mark { width: 34px; height: 34px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-family: var(--f-display); font-weight: 700; font-size: 1.08rem; letter-spacing: -.01em; }
.brand-name b { color: var(--teal-300); font-weight: 700; }
.brand-tagline { font-family: var(--f-mono); font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; color: var(--on-dark-2); margin-top: 3px; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a {
  padding: 8px 12px; border-radius: 8px; font-size: .92rem; font-weight: 500; color: var(--on-dark-2);
  transition: color .2s, background .2s;
}
.nav a:hover { color: var(--white); background: rgba(255,255,255,.06); }
.nav a[aria-current="page"] { color: var(--white); }
.nav a[aria-current="page"]::after { content: ""; display: block; height: 2px; background: var(--teal-300); border-radius: 2px; margin-top: 3px; }
.header-cta { flex: none; }
.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 10px; color: var(--white); margin-left: auto; place-items: center; }
.nav-toggle svg { width: 24px; height: 24px; }
.nav-mobile-cta { display: none; }

.site-footer { background: var(--ink); color: var(--on-dark-2); padding: 72px 0 32px; font-size: .94rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.footer-grid h4 { font-family: var(--f-mono); font-size: .72rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--white); margin-bottom: 16px; }
.footer-grid ul { list-style: none; display: grid; gap: 10px; }
.footer-grid a:hover { color: var(--white); }
.footer-about p { margin-top: 16px; max-width: 320px; }
.footer-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line-dark); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .82rem; }

/* WhatsApp flutuante */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  display: inline-flex; align-items: center; gap: 10px;
  background: #1F9D55; color: var(--white); border-radius: 999px; padding: 12px 18px 12px 14px;
  box-shadow: 0 10px 30px rgba(10,24,38,.25); font-weight: 600; font-size: .92rem;
  transform: translateY(120px); opacity: 0; transition: transform .4s var(--ease), opacity .4s;
}
.wa-float svg { width: 24px; height: 24px; }
.wa-float.is-visible { transform: none; opacity: 1; }
.wa-float:hover { background: #188548; }

/* 6. SEÇÕES DA HOME ---------------------------------------- */
/* Hero */
.hero {
  position: relative; overflow: hidden;
  padding: calc(var(--header-h) + clamp(56px, 9vw, 120px)) 0 clamp(64px, 9vw, 112px);
  background-color: var(--ink); color: var(--on-dark);
  background-image:
    radial-gradient(ellipse 60% 50% at 78% 38%, rgba(100,203,189,.10), transparent 70%),
    linear-gradient(var(--line-dark) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-dark) 1px, transparent 1px);
  background-size: auto, 56px 56px, 56px 56px;
}
.hero h1 { color: var(--white); max-width: 17ch; }
.hero h1 em { font-style: normal; color: var(--teal-300); }
.hero .lead { color: var(--on-dark-2); margin-top: 24px; max-width: 56ch; }
.hero .btn-row { margin-top: 36px; }
.hero-meta { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 8px 22px; font-family: var(--f-mono); font-size: .76rem; letter-spacing: .04em; color: var(--on-dark-2); }
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--teal-300); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 72px); align-items: center; }

/* Hero da home: dimensionado pela largura E pela altura da tela.
   Antes, recuo do topo e título cresciam só com a largura (188px de recuo e
   título de 70px também em notebooks de 768px de altura), empurrando os botões
   para baixo da dobra. Com min(vw, vh), telas altas ficam iguais e telas baixas
   compactam o respiro, não o conteúdo. */
.hero:not(.page-hero) {
  padding-top: calc(var(--header-h) + clamp(24px, min(7vw, 7.5vh), 104px));
  padding-bottom: clamp(48px, min(9vw, 10vh), 112px);
}
.hero:not(.page-hero) h1 { font-size: clamp(2.3rem, min(5.4vw, 7.9vh), 4.4rem); }
.hero:not(.page-hero) .eyebrow { margin-bottom: clamp(12px, 2.2vh, 18px); }
.hero:not(.page-hero) .lead { margin-top: clamp(14px, 2.6vh, 24px); }
.hero:not(.page-hero) .btn-row { margin-top: clamp(20px, 4vh, 36px); }
.hero:not(.page-hero) .hero-meta { margin-top: clamp(14px, 2.8vh, 28px); }
.hero:not(.page-hero) .converge { max-width: min(520px, 74vh); }
/* Notebooks (altura útil até ~820px): a coluna de texto ganha largura e a
   ilustração cede espaço. O título cai de 4 para 3 linhas sem reduzir a fonte. */
@media (min-width: 961px) and (max-height: 820px) {
  .hero:not(.page-hero) .hero-grid { grid-template-columns: 1.3fr .7fr; }
  .hero:not(.page-hero) h1 { max-width: 19ch; }
  .hero:not(.page-hero) .lead { max-width: 60ch; }
}
.page-hero { padding-bottom: clamp(56px, 7vw, 88px); }
.page-hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); max-width: 20ch; }

/* Diagrama do hero: fontes convergindo */
.converge { position: relative; width: 100%; aspect-ratio: 1 / .92; max-width: 520px; margin-left: auto; }
.converge svg { width: 100%; height: 100%; overflow: visible; }
.converge .node rect { fill: rgba(255,255,255,.04); stroke: rgba(255,255,255,.18); }
.converge .node text { fill: var(--on-dark); font-family: var(--f-mono); font-size: 12px; letter-spacing: .04em; }
.converge .node .sub { fill: var(--on-dark-2); font-size: 10px; }
.converge .hub rect { fill: rgba(100,203,189,.08); stroke: var(--teal-300); }
.converge .hub text { fill: var(--teal-300); }
.converge .out rect { fill: var(--teal-300); stroke: none; }
.converge .out text { fill: var(--ink); font-weight: 600; }
.converge .wire { fill: none; stroke: rgba(255,255,255,.18); stroke-width: 1.2; }
.converge .pulse { fill: none; stroke: var(--teal-300); stroke-width: 1.6; stroke-dasharray: 6 220; animation: flow 3.4s linear infinite; }
.converge .pulse:nth-of-type(2) { animation-delay: .8s; }
.converge .pulse:nth-of-type(3) { animation-delay: 1.6s; }
@keyframes flow { from { stroke-dashoffset: 226; } to { stroke-dashoffset: 0; } }

/* Portas de entrada (do leigo ao gestor) */
.doors { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.door {
  display: flex; flex-direction: column; gap: 12px; padding: clamp(22px, 3vw, 32px);
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .25s, background .25s, transform .25s var(--ease);
}
.door:hover { border-color: var(--teal); background: #F0F6F3; transform: translateY(-2px); }
.door-who { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--teal); }
.door-quote { font-family: var(--f-display); font-size: clamp(1.15rem, 1.8vw, 1.4rem); line-height: 1.35; letter-spacing: -.015em; color: var(--text); font-weight: 500; }
.door-answer { color: var(--text-2); font-size: .96rem; }
.door-actions { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; margin-top: auto; padding-top: 8px; }
.door-wa { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: .92rem; color: #1A7F47; }
.door-wa svg { width: 18px; height: 18px; }
.door-wa:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Identificação: seletor de dores */
.pain-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.pain {
  position: relative; display: flex; gap: 14px; align-items: flex-start; text-align: left;
  background: var(--white); border: 1.5px solid var(--line); border-radius: var(--radius);
  padding: 18px 18px 18px 16px; font-size: 1rem; line-height: 1.4; color: var(--text);
  transition: border-color .2s, background .2s, transform .2s var(--ease);
}
.pain:hover { border-color: #BDB9AC; }
.pain .box {
  flex: none; width: 22px; height: 22px; border-radius: 6px; border: 1.5px solid #B8B4A7; margin-top: 1px;
  display: grid; place-items: center; transition: background .2s, border-color .2s;
}
.pain .box svg { width: 14px; height: 14px; color: var(--white); opacity: 0; transform: scale(.6); transition: .2s var(--ease); }
.pain[aria-pressed="true"] { border-color: var(--teal); background: var(--teal-50); }
.pain[aria-pressed="true"] .box { background: var(--teal); border-color: var(--teal); }
.pain[aria-pressed="true"] .box svg { opacity: 1; transform: none; }
.pain-result {
  margin-top: 28px; display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center;
  background: var(--navy); color: var(--on-dark); border-radius: var(--radius); padding: 24px 28px;
}
.pain-result p { color: var(--on-dark-2); }
.pain-result strong { color: var(--white); }
.pain-result .count { font-family: var(--f-display); font-size: 1.5rem; color: var(--teal-300); font-weight: 600; }
.pain-result .suggest { margin-top: 6px; font-size: .92rem; }
.pain-result .suggest a { color: var(--teal-300); text-decoration: underline; text-underline-offset: 3px; }

/* Possibilidade: "Imagine" */
.imagine-list { display: grid; gap: 0; border-top: 1px solid var(--line-dark); }
.imagine-item { display: grid; grid-template-columns: 64px 1fr; gap: 20px; padding: 26px 0; border-bottom: 1px solid var(--line-dark); align-items: baseline; }
.imagine-item .n { font-family: var(--f-mono); font-size: .8rem; color: var(--teal-300); }
.imagine-item h3 { font-size: clamp(1.15rem, 2vw, 1.5rem); font-weight: 500; letter-spacing: -.02em; }
.imagine-item h3 b { color: var(--teal-300); font-weight: 600; }
.imagine-item p { margin-top: 6px; font-size: .96rem; }

/* Calculadora de tempo manual */
.calc { background: rgba(255,255,255,.04); border: 1px solid var(--line-dark); border-radius: var(--radius); padding: clamp(22px, 3vw, 32px); }
.calc h3 { margin-bottom: 6px; }
.calc .muted { color: var(--on-dark-2); font-size: .9rem; }
.calc-fields { display: grid; gap: 18px; margin: 24px 0; }
.calc-field label { display: flex; justify-content: space-between; font-size: .9rem; color: var(--on-dark); margin-bottom: 8px; }
.calc-field output { font-family: var(--f-mono); color: var(--teal-300); }
.calc input[type=range] { width: 100%; accent-color: var(--teal-300); height: 28px; }
.calc-out { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.calc-out > div { background: rgba(0,0,0,.25); border-radius: 10px; padding: 16px; }
.calc-out .v { font-family: var(--f-display); font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 600; color: var(--white); line-height: 1.1; }
.calc-out .l { font-size: .8rem; color: var(--on-dark-2); margin-top: 4px; }
.calc-note { margin-top: 14px; font-size: .8rem !important; color: var(--on-dark-2); }

/* Escada "na medida exata" */
.ladder { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; align-items: end; position: relative; }
.step {
  position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius) var(--radius) 0 0;
  padding: 24px 22px 26px; margin-right: -1px; display: flex; flex-direction: column;
  transition: background .25s, transform .25s var(--ease);
}
.step:nth-child(1) { min-height: 290px; }
.step:nth-child(2) { min-height: 330px; }
.step:nth-child(3) { min-height: 370px; }
.step:nth-child(4) { min-height: 410px; background: var(--navy); color: var(--on-dark); border-color: var(--navy); }
.step:nth-child(4) h3 { color: var(--white); }
.step:nth-child(4) p, .step:nth-child(4) li { color: var(--on-dark-2); }
.step .lvl { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .1em; color: var(--teal); text-transform: uppercase; }
.step:nth-child(4) .lvl { color: var(--teal-300); }
.step h3 { margin: 12px 0 10px; font-size: 1.2rem; }
.step p { font-size: .93rem; color: var(--text-2); }
.step ul { list-style: none; margin-top: auto; padding-top: 18px; display: grid; gap: 6px; font-size: .84rem; color: var(--text-3); }
.step ul li::before { content: "→ "; color: var(--teal); font-family: var(--f-mono); }
.step:nth-child(4) ul li::before { color: var(--teal-300); }
.ladder-base { height: 3px; background: var(--ink); border-radius: 0 0 4px 4px; }
.ladder-caption { display: flex; justify-content: space-between; margin-top: 12px; font-family: var(--f-mono); font-size: .74rem; color: var(--text-3); letter-spacing: .04em; }

/* Áreas de atuação */
.areas { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.areas .card { grid-column: span 2; display: flex; flex-direction: column; }
.areas .card:nth-child(4), .areas .card:nth-child(5) { grid-column: span 3; }
.areas .card .link-arrow { margin-top: auto; padding-top: 18px; font-size: .92rem; }
.areas .card .examples { font-size: .86rem; color: var(--text-3); margin-top: 12px; }

/* Cards de projeto */
.project-card {
  display: grid; grid-template-rows: auto 1fr; overflow: hidden; padding: 0;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
}
.project-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: #C9C6BA; }
.project-thumb { position: relative; aspect-ratio: 16 / 10; background: var(--ink); overflow: hidden; border-bottom: 1px solid var(--line); }
.project-thumb svg { width: 100%; height: 100%; }
.project-body { padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.project-body .tags { display: flex; gap: 6px; flex-wrap: wrap; }
.project-body h3 { font-size: 1.3rem; margin-top: 4px; }
.project-body p { color: var(--text-2); font-size: .95rem; }
.project-body .link-arrow { margin-top: auto; padding-top: 10px; }
.s-dark .project-card { border-color: var(--line-dark); }
.s-dark .project-card h3 { color: var(--text); }
.s-dark .project-card p { color: var(--text-2); }
.s-dark .project-card .link-arrow { color: var(--teal); }

/* Metodologia: linha do tempo */
.method { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0; counter-reset: m; position: relative; }
.method::before { content: ""; position: absolute; top: 19px; left: 20px; right: 20px; height: 1px; background: var(--line-dark); }
.method--4 { grid-template-columns: repeat(4, 1fr); row-gap: 36px; }
.method--4::before { display: none; }
.method--3 { grid-template-columns: repeat(3, 1fr); }
.method-step { position: relative; padding-right: 18px; }
.method-step .dot {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: var(--ink); border: 1px solid rgba(100,203,189,.5); color: var(--teal-300);
  font-family: var(--f-mono); font-size: .8rem; position: relative; z-index: 1;
}
.method-step h3 { font-size: 1.08rem; margin: 20px 0 8px; }
.method-step p { font-size: .9rem; }
.s-white .method::before, .s-paper .method::before { background: var(--line); }
.s-white .method-step .dot, .s-paper .method-step .dot { background: var(--white); border-color: var(--teal); color: var(--teal); }

/* Bloco "você foca / a gente foca" */
.duo { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.duo > div { padding: clamp(24px, 3.4vw, 40px); }
.duo > div:first-child { background: var(--white); }
.duo > div:last-child { background: var(--navy); color: var(--on-dark); }
.duo h3 { font-size: 1.4rem; margin: 6px 0 18px; }
.duo > div:last-child h3 { color: var(--white); }
.duo .who { font-family: var(--f-mono); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--teal); }
.duo > div:last-child .who { color: var(--teal-300); }
.duo > div:last-child .ticks li { color: var(--on-dark-2); }
.duo > div:last-child .ticks li::before { border-color: var(--teal-300); }

/* Fundador */
.founder { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: start; }
.founder-photo {
  width: 148px; height: 148px; border-radius: 20px; object-fit: cover; display: block;
  background: var(--navy); box-shadow: 0 0 0 1px var(--line), 0 12px 28px -14px rgba(10,24,38,.45);
}
.founder .link-arrow { display: inline-flex; }
@media (max-width: 640px) { .founder-photo { width: 120px; height: 120px; } }
.founder-meta { font-family: var(--f-mono); font-size: .76rem; color: var(--text-3); letter-spacing: .04em; margin-top: 4px; }
.facts { display: grid; grid-template-columns: 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.facts > div { background: var(--white); padding: 22px; }
.facts .k { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); }
.facts .v { font-family: var(--f-display); font-weight: 600; font-size: 1.08rem; margin-top: 6px; line-height: 1.3; }

/* Faixa de conversão */
.cta-band { position: relative; overflow: hidden; }
.cta-box { display: grid; grid-template-columns: 1.3fr .7fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.cta-box h2 { max-width: 18ch; }
.offer { background: rgba(255,255,255,.04); border: 1px solid rgba(100,203,189,.35); border-radius: var(--radius); padding: 28px; }
.offer .price { font-family: var(--f-display); font-size: 2.6rem; font-weight: 700; color: var(--teal-300); line-height: 1; }
.offer .price small { font-size: 1rem; color: var(--on-dark-2); font-weight: 500; margin-left: 6px; }
.offer ul { margin: 20px 0 24px; }
.offer .btn { width: 100%; }
.offer .fine { font-size: .8rem; margin-top: 12px; text-align: center; }

/* 7. PROJETOS / CASES -------------------------------------- */
.story-nav {
  position: sticky; top: var(--header-h); z-index: 50; background: rgba(245,244,239,.94);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
.story-nav .container { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding-top: 10px; padding-bottom: 10px; }
.story-nav .container::-webkit-scrollbar { display: none; }
.story-nav a { flex: none; font-size: .84rem; padding: 7px 12px; border-radius: 999px; color: var(--text-2); white-space: nowrap; }
.story-nav a .mono { color: var(--text-3); font-size: .72rem; margin-right: 6px; }
.story-nav a:hover { background: #EAE8E0; color: var(--text); }
.story-nav a.is-active { background: var(--ink); color: var(--white); }
.story-nav a.is-active .mono { color: var(--teal-300); }

.story-block { display: grid; grid-template-columns: 220px 1fr; gap: clamp(24px, 4vw, 56px); padding: clamp(40px, 6vw, 72px) 0; border-top: 1px solid var(--line); }
.story-block:first-child { border-top: 0; }
.story-block .num { font-family: var(--f-mono); font-size: .78rem; color: var(--teal); letter-spacing: .08em; text-transform: uppercase; }
.story-block .num b { display: block; font-family: var(--f-display); font-size: 1.5rem; color: var(--text); letter-spacing: -.02em; text-transform: none; margin-top: 6px; font-weight: 600; line-height: 1.15; }
.story-block .body { max-width: 760px; }
.story-block .body > p { font-size: 1.06rem; color: var(--text-2); }
.story-block .body > p + p { margin-top: 14px; }
.story-block .body .grid { margin-top: 24px; }

.quote-pain {
  border-left: 3px solid var(--amber); padding: 6px 0 6px 20px; margin: 22px 0 0;
  font-family: var(--f-display); font-size: 1.25rem; line-height: 1.4; color: var(--text); letter-spacing: -.01em;
}

.sources { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-top: 22px; }
.source { background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 16px; }
.source .k { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .1em; color: var(--teal); text-transform: uppercase; }
.source .v { font-weight: 600; margin-top: 4px; }
.source p { font-size: .86rem; color: var(--text-3); margin-top: 4px; }

/* Fluxo de arquitetura interativo */
.arch { margin-top: 8px; }
.arch-track { display: grid; grid-template-columns: repeat(var(--steps, 7), minmax(0, 1fr)); gap: 8px; position: relative; }
.arch-node {
  position: relative; text-align: left; background: var(--white); border: 1.5px solid var(--line); border-radius: 12px;
  padding: 14px 12px; min-height: 104px; display: flex; flex-direction: column; gap: 6px;
  transition: border-color .2s, background .2s, transform .2s var(--ease), color .2s;
}
.arch-node .i { font-family: var(--f-mono); font-size: .68rem; color: var(--text-3); }
.arch-node .t { font-family: var(--f-display); font-weight: 600; font-size: .96rem; line-height: 1.2; }
.arch-node .s { font-size: .76rem; color: var(--text-3); line-height: 1.3; }
.arch-node::after {
  content: ""; position: absolute; right: -9px; top: 50%; width: 10px; height: 1.5px; background: #BDB9AC; z-index: 1;
}
.arch-node:last-child::after { display: none; }
.arch-node:hover { border-color: #BDB9AC; }
.arch-node[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: var(--white); transform: translateY(-3px); }
.arch-node[aria-selected="true"] .i { color: var(--teal-300); }
.arch-node[aria-selected="true"] .s { color: var(--on-dark-2); }
.arch-node.is-passed { border-color: var(--teal); }
.arch-panel {
  margin-top: 16px; background: var(--ink); color: var(--on-dark); border-radius: var(--radius);
  padding: clamp(20px, 3vw, 30px); display: grid; grid-template-columns: 1fr 1fr; gap: 28px; min-height: 170px;
}
.arch-panel h4 { color: var(--white); font-size: 1.2rem; margin-bottom: 8px; }
.arch-panel p { color: var(--on-dark-2); font-size: .96rem; }
.arch-panel .lbl { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .1em; color: var(--teal-300); text-transform: uppercase; margin-bottom: 8px; display: block; }
.arch-panel .tech { color: var(--on-dark); font-family: var(--f-mono); font-size: .84rem; line-height: 1.7; }
.arch-controls { display: flex; gap: 8px; margin-top: 14px; align-items: center; }
.arch-controls .muted { font-size: .84rem; margin-left: auto; }

/* Benefícios */
.benefit { display: flex; gap: 14px; align-items: flex-start; }
.benefit .icon-box { margin: 0; flex: none; }
.benefit h3 { font-size: 1.05rem; margin-bottom: 4px; }
.benefit p { font-size: .93rem; color: var(--text-2); }

/* Navegação entre projetos */
.next-projects { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.next-projects a { display: block; padding: 22px 24px; border: 1px solid var(--line-dark); border-radius: var(--radius); transition: border-color .2s, background .2s; }
.next-projects a:hover { border-color: var(--teal-300); background: rgba(100,203,189,.05); }
.next-projects .k { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--on-dark-2); }
.next-projects .v { font-family: var(--f-display); font-size: 1.2rem; font-weight: 600; color: var(--white); margin-top: 6px; }

/* 8. DEMOS ------------------------------------------------- */
.demo-stage { background: var(--ink); padding: clamp(40px, 6vw, 72px) 0; }
.demo-stage .demo-head { display: flex; justify-content: space-between; gap: 16px; align-items: end; flex-wrap: wrap; margin-bottom: 20px; color: var(--on-dark); }
.demo-stage .demo-head h2 { color: var(--white); font-size: clamp(1.5rem, 2.6vw, 2rem); }
.demo-stage .demo-head p { color: var(--on-dark-2); margin-top: 6px; }

.app {
  background: #F7F8FA; border-radius: 16px; overflow: hidden; color: var(--text);
  box-shadow: 0 30px 80px rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.08);
}
.app-bar {
  display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: var(--white); border-bottom: 1px solid #E6E8EC;
}
.app-dots { display: flex; gap: 6px; }
.app-dots i { width: 10px; height: 10px; border-radius: 50%; background: #E1E4E8; display: block; }
.app-title { font-family: var(--f-mono); font-size: .78rem; color: var(--text-3); }
.app-bar .tag { margin-left: auto; }
.app-body { padding: clamp(14px, 2vw, 22px); display: grid; gap: 14px; }

.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.seg { display: inline-flex; background: #ECEEF1; border-radius: 10px; padding: 3px; }
.seg button { padding: 7px 12px; font-size: .84rem; border-radius: 8px; color: var(--text-2); font-weight: 500; min-height: 34px; }
.seg button[aria-pressed="true"] { background: var(--white); color: var(--text); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.select {
  appearance: none; -webkit-appearance: none; min-height: 40px; padding: 8px 34px 8px 12px; border-radius: 10px; border: 1px solid #DADDE2; background: var(--white)
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%236E7B88' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 12px center;
  font-size: .88rem; color: var(--text);
}
.toolbar .spacer { flex: 1; }

.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.kpi { background: var(--white); border: 1px solid #E6E8EC; border-radius: 12px; padding: 16px; }
.kpi .l { font-size: .8rem; color: var(--text-3); }
.kpi .v { font-family: var(--f-display); font-size: clamp(1.35rem, 2.2vw, 1.75rem); font-weight: 600; margin-top: 4px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.kpi .d { font-size: .78rem; margin-top: 4px; display: inline-flex; align-items: center; gap: 4px; font-variant-numeric: tabular-nums; }
.kpi .d.up { color: var(--green); }
.kpi .d.down { color: var(--red); }
.kpi .d.flat { color: var(--text-3); }

.panel { background: var(--white); border: 1px solid #E6E8EC; border-radius: 12px; padding: 16px; min-width: 0; }
.panel-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.panel-head h4 { font-family: var(--f-body); font-size: .92rem; font-weight: 600; letter-spacing: 0; }
.panel-head .muted { font-size: .78rem; }
.panels-2 { display: grid; grid-template-columns: 1.5fr 1fr; gap: 12px; }
.panels-2b { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* Gráficos SVG */
.chart { position: relative; width: 100%; }
.chart svg { width: 100%; height: auto; overflow: visible; }
.chart .grid-line { stroke: #ECEEF1; stroke-width: 1; }
.chart .axis-label { fill: var(--text-3); font-size: 11px; font-family: var(--f-body); font-variant-numeric: tabular-nums; }
.chart .val-label { fill: var(--text-2); font-size: 11px; font-family: var(--f-body); font-weight: 600; font-variant-numeric: tabular-nums; }
.chart .hit { fill: transparent; cursor: crosshair; }
.chart .bar { transition: opacity .2s; }
.chart .bar.dim { opacity: .35; }
.chart .crosshair { stroke: #9AA5B1; stroke-width: 1; stroke-dasharray: 3 3; }
.legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: .8rem; color: var(--text-2); margin-top: 6px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 14px; height: 3px; border-radius: 2px; display: inline-block; }
.legend i.sq { width: 10px; height: 10px; border-radius: 3px; }
.tooltip {
  position: absolute; pointer-events: none; z-index: 5; background: var(--ink); color: var(--white);
  border-radius: 8px; padding: 8px 10px; font-size: .78rem; line-height: 1.45; white-space: nowrap;
  box-shadow: 0 8px 20px rgba(0,0,0,.2); opacity: 0; transform: translateY(4px); transition: opacity .12s, transform .12s;
}
.tooltip.is-on { opacity: 1; transform: none; }
.tooltip b { font-weight: 600; }
.tooltip .row { display: flex; gap: 8px; align-items: center; justify-content: space-between; }
.tooltip .row i { width: 8px; height: 8px; border-radius: 2px; display: inline-block; margin-right: 6px; }

/* Tabela de dados */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.dtable { width: 100%; border-collapse: collapse; font-size: .86rem; font-variant-numeric: tabular-nums; }
.dtable th { text-align: left; font-weight: 600; font-size: .74rem; color: var(--text-3); text-transform: uppercase; letter-spacing: .04em; padding: 8px 10px; border-bottom: 1px solid #E6E8EC; white-space: nowrap; }
.dtable td { padding: 10px; border-bottom: 1px solid #F0F1F3; white-space: nowrap; }
.dtable td.num, .dtable th.num { text-align: right; }
.dtable tr:last-child td { border-bottom: 0; }
.dtable tbody tr:hover { background: #F7F8FA; }
.bar-cell { display: flex; align-items: center; gap: 8px; justify-content: flex-end; }
.bar-cell .b { height: 6px; border-radius: 3px; background: var(--teal-600); }

/* Status */
.status { display: inline-flex; align-items: center; gap: 6px; font-size: .76rem; font-weight: 600; padding: 3px 8px; border-radius: 999px; white-space: nowrap; }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status.ok { background: var(--green-50); color: #1F6B41; }
.status.warn { background: var(--amber-50); color: #8A4E0F; }
.status.crit { background: var(--red-50); color: #9A2F29; }
.status.info { background: #EAF0FB; color: #2E4E9E; }

/* Alertas */
.alerts { display: grid; gap: 8px; }
.alert-item { display: grid; grid-template-columns: auto 1fr; gap: 10px; padding: 10px 12px; border-radius: 10px; background: #FAFAFB; border: 1px solid #EEF0F2; font-size: .86rem; line-height: 1.4; }
.alert-item svg { width: 18px; height: 18px; margin-top: 1px; }
.alert-item.warn svg { color: var(--amber); }
.alert-item.crit svg { color: var(--red); }
.alert-item.ok svg { color: var(--green); }
.alert-item.info svg { color: var(--blue); }
.alert-item b { font-weight: 600; }
.alert-item .why { display: block; color: var(--text-3); font-size: .78rem; margin-top: 2px; }

.insight { background: var(--teal-50); border: 1px solid #CDE9E3; border-radius: 12px; padding: 14px 16px; font-size: .9rem; line-height: 1.55; color: #134E47; }
.insight .k { font-family: var(--f-mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--teal); display: block; margin-bottom: 4px; }

/* Planilha */
.sheet-tabs { display: flex; gap: 2px; padding: 0 12px; background: #EEF0F2; border-top: 1px solid #DADDE2; overflow-x: auto; }
.sheet-tabs button { padding: 8px 14px; font-size: .8rem; color: var(--text-2); border-radius: 0 0 6px 6px; white-space: nowrap; min-height: 34px; }
.sheet-tabs button[aria-selected="true"] { background: var(--white); color: var(--teal); font-weight: 600; box-shadow: inset 0 2px 0 var(--teal); }
.sheet { width: 100%; border-collapse: collapse; font-family: "Calibri", "Segoe UI", var(--f-body); font-size: .84rem; background: var(--white); font-variant-numeric: tabular-nums; }
.sheet th, .sheet td { border: 1px solid #E1E3E6; padding: 6px 8px; white-space: nowrap; text-align: left; height: 30px; }
.sheet thead th { background: #F3F4F6; color: var(--text-3); font-weight: 500; text-align: center; font-size: .74rem; }
.sheet .rn { background: #F3F4F6; color: var(--text-3); text-align: center; width: 36px; font-size: .74rem; }
.sheet .hdr td { background: #E9F3F1; font-weight: 700; color: #134E47; }
.sheet td.num { text-align: right; }
.sheet td.issue { background: #FDF1E4; box-shadow: inset 0 0 0 2px var(--amber); position: relative; cursor: help; }
.sheet td.issue-crit { background: #FBE7E5; box-shadow: inset 0 0 0 2px var(--red); cursor: help; }
.sheet td.merged { background: #F7F7F4; font-weight: 700; text-align: center; color: var(--text-2); }
.sheet.messy td { font-family: "Comic Sans MS", "Calibri", sans-serif; }
.sheet.messy td.yellow { background: #FFF6B5; }
.sheet.messy td.pinkish { background: #FCE4EC; }
.sheet-wrap { overflow-x: auto; background: var(--white); border-radius: 12px; border: 1px solid #E6E8EC; }
.formula-bar { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-bottom: 1px solid #E6E8EC; background: var(--white); font-size: .82rem; }
.formula-bar .fx { font-style: italic; font-family: Georgia, serif; color: var(--text-3); }
.formula-bar code { font-family: var(--f-mono); font-size: .78rem; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.issues-list { display: grid; gap: 8px; counter-reset: iss; }
.issue-li { display: grid; grid-template-columns: 26px 1fr; gap: 10px; font-size: .86rem; line-height: 1.45; padding: 10px; border-radius: 10px; background: #FFFBF5; border: 1px solid #F4E2CB; }
.issue-li::before { counter-increment: iss; content: counter(iss); width: 22px; height: 22px; border-radius: 50%; background: var(--amber); color: var(--white); font-size: .72rem; font-weight: 700; display: grid; place-items: center; }
.issue-li.crit { background: #FFF7F6; border-color: #F2D2CE; }
.issue-li.crit::before { background: var(--red); }
.issue-li b { display: block; }
.issue-li span { color: var(--text-3); font-size: .8rem; }

.form-row { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)) auto; gap: 8px; align-items: end; }
.field label { display: block; font-size: .74rem; color: var(--text-3); margin-bottom: 4px; font-weight: 500; }
.input { width: 100%; min-height: 40px; padding: 8px 10px; border: 1px solid #DADDE2; border-radius: 10px; background: var(--white); font-size: .88rem; }
.input:focus { outline: 2px solid var(--teal-600); outline-offset: 0; border-color: transparent; }
.input.is-invalid { border-color: var(--red); background: #FFF8F7; }
.field-error { font-size: .76rem; color: var(--red); margin-top: 4px; min-height: 1em; }
.btn-app { min-height: 40px; padding: 8px 16px; border-radius: 10px; background: var(--teal); color: var(--white); font-weight: 600; font-size: .88rem; white-space: nowrap; }
.btn-app:hover { background: #096A5F; }
.btn-app.secondary { background: var(--white); color: var(--text); border: 1px solid #DADDE2; }
.btn-app.secondary:hover { border-color: var(--text-3); }
.links-diagram { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: .8rem; }
.links-diagram .lnk { padding: 6px 10px; border-radius: 8px; background: #ECEEF1; font-weight: 600; color: var(--text-2); }
.links-diagram .lnk.on { background: var(--teal); color: var(--white); }
.links-diagram .arr { color: var(--text-3); font-family: var(--f-mono); }
.flash { animation: flash 1.2s var(--ease); }
@keyframes flash { 0% { background: #CFF0E9; } 100% { background: inherit; } }

/* Checklist (celular + painel) */
.duo-app { display: grid; grid-template-columns: 340px 1fr; gap: 16px; align-items: start; }
.phone {
  background: #0E1621; border-radius: 36px; padding: 12px; box-shadow: 0 20px 50px rgba(0,0,0,.35);
  max-width: 340px; width: 100%; margin: 0 auto;
}
.phone-screen { background: #F4F5F7; border-radius: 26px; overflow: hidden; min-height: 600px; display: flex; flex-direction: column; }
.phone-top { background: var(--navy); color: var(--white); padding: 18px 18px 14px; }
.phone-top .k { font-family: var(--f-mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--teal-300); }
.phone-top h4 { color: var(--white); font-size: 1.05rem; margin-top: 4px; font-family: var(--f-display); }
.phone-body { padding: 14px; display: grid; gap: 10px; flex: 1; align-content: start; }
.chk-item { background: var(--white); border-radius: 12px; padding: 12px; border: 1px solid #E6E8EC; }
.chk-item .q { font-size: .86rem; font-weight: 500; line-height: 1.35; display: flex; gap: 6px; align-items: flex-start; }
.chk-item .q .crit-badge { font-size: .62rem; font-weight: 700; color: #9A2F29; background: var(--red-50); padding: 1px 6px; border-radius: 4px; letter-spacing: .04em; flex: none; margin-top: 2px; }
.chk-opts { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; margin-top: 10px; }
.chk-opts button { min-height: 36px; border-radius: 8px; font-size: .78rem; font-weight: 600; background: #F1F2F4; color: var(--text-2); border: 1.5px solid transparent; }
.chk-opts button[aria-pressed="true"][data-v="ok"] { background: var(--green-50); color: #1F6B41; border-color: var(--green); }
.chk-opts button[aria-pressed="true"][data-v="nc"] { background: var(--red-50); color: #9A2F29; border-color: var(--red); }
.chk-opts button[aria-pressed="true"][data-v="na"] { background: #E9EBEE; color: var(--text); border-color: #9AA5B1; }
.phone-foot { padding: 12px 14px 16px; background: var(--white); border-top: 1px solid #E6E8EC; display: grid; gap: 8px; }
.phone-foot .prog { height: 6px; background: #ECEEF1; border-radius: 3px; overflow: hidden; }
.phone-foot .prog i { display: block; height: 100%; background: var(--teal-600); width: 0; transition: width .3s var(--ease); }
.phone-foot .btn-app { width: 100%; min-height: 46px; }
.phone-foot .btn-app:disabled { background: #B8C2CC; cursor: not-allowed; }

.notify {
  display: grid; grid-template-columns: 36px 1fr; gap: 10px; background: var(--white); border-radius: 14px; padding: 12px;
  border: 1px solid #E6E8EC; box-shadow: var(--shadow); font-size: .84rem; line-height: 1.45;
}
.notify .av { width: 36px; height: 36px; border-radius: 10px; background: var(--navy); color: var(--teal-300); display: grid; place-items: center; font-weight: 700; font-family: var(--f-display); font-size: .8rem; }
.notify .meta { font-size: .72rem; color: var(--text-3); }
.notify.enter { animation: enter .5s var(--ease); }
@keyframes enter { from { opacity: 0; transform: translateY(-10px) scale(.98); } to { opacity: 1; transform: none; } }
.empty { font-size: .86rem; color: var(--text-3); padding: 12px; text-align: center; border: 1px dashed #DADDE2; border-radius: 10px; }

/* Linha do tempo do pedido (logística) */
.timeline-bar { display: flex; height: 54px; border-radius: 10px; overflow: hidden; gap: 2px; background: var(--white); }
.timeline-bar .seg-t { position: relative; display: flex; flex-direction: column; justify-content: center; padding: 0 10px; min-width: 0; color: var(--white); font-size: .76rem; line-height: 1.2; transition: flex-grow .5s var(--ease), background .3s; cursor: default; }
.timeline-bar .seg-t b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.timeline-bar .seg-t span { opacity: .85; font-variant-numeric: tabular-nums; white-space: nowrap; }
.timeline-bar .seg-t.n0 { background: #0B7A6E; } .timeline-bar .seg-t.n1 { background: #0E9384; } .timeline-bar .seg-t.n2 { background: #2FA597; } .timeline-bar .seg-t.n3 { background: #0E9384; } .timeline-bar .seg-t.n4 { background: #0B7A6E; }
.timeline-bar .seg-t.is-bottleneck { background: var(--amber); }
.timeline-scale { display: flex; justify-content: space-between; font-size: .72rem; color: var(--text-3); margin-top: 6px; font-variant-numeric: tabular-nums; }
.bn-flag { display: inline-flex; align-items: center; gap: 6px; font-size: .76rem; font-weight: 600; color: #8A4E0F; background: var(--amber-50); border-radius: 999px; padding: 3px 10px; }
.bn-flag svg { width: 14px; height: 14px; }
.sim { display: grid; grid-template-columns: 1fr auto; gap: 14px 24px; align-items: center; }
.sim input[type=range] { width: 100%; accent-color: var(--teal); }
.sim-out { display: flex; gap: 22px; flex-wrap: wrap; }
.sim-out div { font-size: .78rem; color: var(--text-3); }
.sim-out b { display: block; font-family: var(--f-display); font-size: 1.3rem; color: var(--text); font-variant-numeric: tabular-nums; }
.sim-out b.good { color: var(--green); }

/* 9. UTILITÁRIOS / ANIMAÇÃO -------------------------------- */
.mt-s { margin-top: 12px; } .mt-m { margin-top: 24px; } .mt-l { margin-top: 40px; } .mt-xl { margin-top: 64px; }
.center { text-align: center; }
.hide { display: none !important; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .08s; } .reveal-d2 { transition-delay: .16s; } .reveal-d3 { transition-delay: .24s; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .converge .pulse { display: none; }
}

/* 10. RESPONSIVO ------------------------------------------- */
@media (max-width: 1080px) {
  .nav a { padding: 8px 9px; font-size: .88rem; }
  .method { grid-template-columns: repeat(3, 1fr); row-gap: 36px; }
  .method::before { display: none; }
  .arch-track { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .arch-node:nth-child(4n)::after { display: none; }
  .duo-app { grid-template-columns: 300px 1fr; }
  .form-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
  :root { --header-h: 62px; }
  .nav-toggle { display: grid; }
  .header-cta { display: none; }
  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; margin: 0;
    /* Altura real visível: 100dvh acompanha as barras do Safari/Chrome mobile */
    height: calc(100vh - var(--header-h)); height: calc(100dvh - var(--header-h));
    overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
    flex-direction: column; align-items: stretch; gap: 0; padding: 12px var(--gutter) 32px;
    background: var(--ink); overflow-y: auto;
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .25s, transform .25s var(--ease), visibility .25s;
  }
  .site-header.is-open .nav { transform: none; opacity: 1; visibility: visible; }
  .nav a { font-size: 1.15rem; padding: 16px 4px; border-bottom: 1px solid var(--line-dark); border-radius: 0; font-family: var(--f-display); color: var(--on-dark); }
  .nav a[aria-current="page"]::after { display: none; }
  .nav a[aria-current="page"] { color: var(--teal-300); }
  .nav-mobile-cta { display: flex; margin-top: 24px; }
  .nav-mobile-cta .btn { width: 100%; background: var(--teal-300); color: var(--ink); font-family: var(--f-body); font-size: 1rem; border: 0; padding: 14px; border-radius: 999px; }

  .hero-grid, .split, .cta-box { grid-template-columns: 1fr; }
  .converge { max-width: 440px; margin: 8px auto 0; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ladder { grid-template-columns: 1fr 1fr; gap: 12px; align-items: stretch; }
  .step { min-height: 0 !important; border-radius: var(--radius); margin: 0; }
  .ladder-base, .ladder-caption { display: none; }
  .areas { grid-template-columns: 1fr 1fr; }
  .areas .card, .areas .card:nth-child(4), .areas .card:nth-child(5) { grid-column: span 1; }
  .areas .card:nth-child(5) { grid-column: span 2; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .story-block { grid-template-columns: 1fr; gap: 14px; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .panels-2, .panels-2b { grid-template-columns: 1fr; }
  .duo-app { grid-template-columns: 1fr; }
  .arch-panel { grid-template-columns: 1fr; gap: 16px; }
  .facts { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  body { font-size: .98rem; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .ladder { grid-template-columns: 1fr; }
  .areas { grid-template-columns: 1fr; }
  .areas .card:nth-child(5) { grid-column: span 1; }
  .method, .method--3 { grid-template-columns: 1fr 1fr; }
  .method--3 { grid-template-columns: 1fr; }
  .duo { grid-template-columns: 1fr; }
  .pain-result { grid-template-columns: 1fr; }
  .doors { grid-template-columns: 1fr; }
  .pain-result .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .imagine-item { grid-template-columns: 40px 1fr; gap: 12px; }
  .arch-track { grid-template-columns: 1fr 1fr; }
  .arch-node { min-height: 0; }
  .arch-node::after { display: none; }
  .next-projects { grid-template-columns: 1fr; }
  .founder { grid-template-columns: 1fr; }
  .tech-details dl { grid-template-columns: 1fr; gap: 2px 0; }
  .tech-details dd { margin-bottom: 10px; }
  .btn-row .btn { width: 100%; }
  .hero .btn-row .btn { width: 100%; }
  .form-row { grid-template-columns: 1fr 1fr; }
  .form-row .btn-app { grid-column: span 2; }
  .wa-float span { display: none; }
  .wa-float { padding: 14px; right: 16px; bottom: 16px; }
  .calc-out { grid-template-columns: 1fr; }
  .hero .converge { display: none; }
  .hero:not(.page-hero) .eyebrow { display: flex; align-items: flex-start; }
  .hero:not(.page-hero) .eyebrow::before { flex: none; margin-top: .62em; }
  .phone-screen { min-height: 0; }
}

@media print {
  .site-header, .wa-float, .story-nav { display: none; }
  .reveal { opacity: 1; transform: none; }
}

/* Texto corrido (privacidade etc.) */
.prose h2 { font-size: 1.35rem; margin: 40px 0 12px; }
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--text-2); margin-bottom: 12px; }
.prose ul { margin: 12px 0 20px; }
