/* Kanban em destaque (16/10/2026): topo da página inicial e página /kanban.
   As figuras são fotos das telas reais do portal com dados de exemplo (assets/images/kanban/), no lugar dos desenhos
   simplificados (Felipe: "achei muito simples e meio fora de como é hoje"). */

/* ── Topo: texto no centro e a tela do quadro embaixo ── */
.kb-hero { min-height: 0; padding-bottom: 5.5rem; }
.kb-hero-stack { position: relative; z-index: 1; display: grid; gap: clamp(2.4rem, 5vw, 3.6rem); }
.kb-hero .hero-copy { max-width: 1060px; margin: 0 auto; text-align: center; }
.kb-hero .eyebrow, .kb-hero .hero-actions { justify-content: center; }
.kb-hero h1 { max-width: none; }
.kb-hero h1, .kb-hero .hero-lead { margin-inline: auto; }

/* ── Tela em moldura de navegador ── */
.kb-shot { position: relative; min-width: 0; margin: 0; }
.kb-stage { position: relative; }
.kb-window { overflow: hidden; border: 1px solid rgba(222, 247, 247, .16); border-radius: 14px; background: #0b1a1d; box-shadow: 0 30px 90px rgba(1, 14, 17, .45); }
.kb-window-bar { display: flex; align-items: center; gap: .4rem; padding: .55rem .8rem; border-bottom: 1px solid rgba(222, 247, 247, .1); background: #102428; }
.kb-window-bar i { flex: none; width: .62rem; height: .62rem; border-radius: 50%; background: #2c4448; }
.kb-window-bar span { flex: 0 1 26rem; min-width: 0; margin-left: .6rem; padding: .2rem .7rem; overflow: hidden; border-radius: .45rem; background: #0b1a1d; color: #8fa7ab; font-size: .72rem; text-overflow: ellipsis; white-space: nowrap; }
.kb-shot img, .kb-device img, .kb-dialog-shot img { display: block; width: 100%; height: auto; }
.kb-shot figcaption, .kb-device figcaption, .kb-dialog-shot figcaption { margin-top: .9rem; color: var(--ink-soft); font-size: .8rem; line-height: 1.5; text-align: center; }
.kb-hero .kb-shot figcaption { color: #b7c9cc; }

/* Celular por cima da tela (página inicial) */
.kb-shot-phone { position: absolute; right: -1.2rem; bottom: -2.4rem; width: clamp(120px, 19%, 250px); padding: 7px; border: 1px solid rgba(222, 247, 247, .2); border-radius: 26px; background: #050f12; box-shadow: 0 24px 60px rgba(0, 0, 0, .55); }
.kb-shot-phone img { border-radius: 19px; }
.kb-shot-with-phone figcaption { padding-right: 22%; text-align: left; }

/* Celular sozinho (seção da O.S.) */
.kb-device { justify-self: center; width: min(100%, 300px); margin: 0; }
.kb-device-frame { padding: 9px; border: 1px solid var(--line); border-radius: 34px; background: #050f12; box-shadow: 0 30px 70px rgba(1, 20, 24, .35); }
.kb-device-frame img { border-radius: 26px; }

/* Janela de indicadores */
.kb-dialog-shot { justify-self: center; width: min(100%, 480px); margin: 0; }
.kb-dialog-shot img { border: 1px solid rgba(222, 247, 247, .14); border-radius: 14px; box-shadow: 0 30px 70px rgba(1, 20, 24, .35); }

/* Abas do topo da página inicial (17/10/2026): trocam a tela real mostrada */
.kb-tablist { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-bottom: 1rem; }
.kb-tablist [role="tab"] { padding: .55rem 1.15rem; border: 1px solid rgba(222, 247, 247, .2); border-radius: 999px; background: transparent; color: #d9efee; font: inherit; font-size: .92rem; font-weight: 700; cursor: pointer; }
.kb-tablist [role="tab"]:hover { border-color: #5bd4ce; }
.kb-tablist [role="tab"][aria-selected="true"] { border-color: #5bd4ce; background: #5bd4ce; color: #0b1d21; }
.kb-tablist [role="tab"]:focus-visible { outline: 2px solid #5bd4ce; outline-offset: 2px; }
.kb-shot-phone[hidden] { display: none; }
.kb-tabs:not(.kb-shot-with-phone) figcaption { padding-right: 0; text-align: center; }

/* Por onde começar (página inicial): Estoque, Kanban de ordens e Qualidade */
.home-paths { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .9rem; width: 100%; max-width: 1040px; margin: 0 auto; }
.home-paths a { display: grid; align-content: start; gap: .3rem; padding: 1rem 1.15rem; border: 1px solid rgba(222, 247, 247, .16); border-radius: 14px; background: rgba(255, 255, 255, .04); color: #f5fbfb; text-align: left; text-decoration: none; transition: border-color .2s ease, background .2s ease; }
.home-paths a:hover, .home-paths a:focus-visible { border-color: #5bd4ce; background: rgba(91, 212, 206, .08); }
.home-paths span { color: #5bd4ce; font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.home-paths strong { font-size: 1.05rem; line-height: 1.3; }
.home-paths small { color: #b7c9cc; font-size: .86rem; line-height: 1.45; }

/* Páginas de Estoque e de Qualidade (17/10/2026): tela real no topo; o painel do app para Windows abre na janela */
:is(.stock-hero, .sgq-hero) .kb-shot figcaption { color: #b7c9cc; text-align: left; }
.stock-shot-desktop { margin-left: .3rem; padding: 0; border: 0; background: none; color: #5bd4ce; font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; }
.stock-shot-desktop:focus-visible { outline: 2px solid #5bd4ce; outline-offset: 2px; }

/* ── Página inicial ── */
.home-kanban .hero-copy .eyebrow b { padding: .1rem .45rem; margin-right: .35rem; border-radius: 999px; color: #0b1d21; background: #5bd4ce; font-size: .68rem; letter-spacing: .08em; }
.home-kanban .hero h1 { font-size: clamp(2.3rem, 4.2vw, 4.1rem); }
.home-kanban .hero-actions { margin-top: 1.5rem; }
.home-kanban .platform-note { margin-top: .9rem; color: var(--muted-inverse); font-size: .78rem; }
.home-windows { padding: 4.5rem 0; }
.home-windows .home-windows-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.home-windows h2 { margin: .4rem 0 .8rem; font-family: var(--display); font-size: clamp(1.7rem, 3vw, 2.4rem); letter-spacing: -.03em; line-height: 1.1; }
.home-windows p { color: var(--ink-soft); }

/* ── Página /kanban ── */
.kb-page .hero h1 { font-size: clamp(2.2rem, 3.8vw, 3.7rem); }
.kb-features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.kb-features article, .kb-steps li { padding: 1.2rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-strong); }
.kb-features h3, .kb-split h3 { margin: .6rem 0 .4rem; font-size: 1.05rem; }
.kb-features p, .kb-split p, .kb-steps p { margin: 0; color: var(--ink-soft); font-size: .92rem; line-height: 1.6; }
.kb-icon { display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: .75rem; color: var(--teal-dark); background: var(--surface-alt); }
.kb-icon svg { width: 1.3rem; height: 1.3rem; }
.kb-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.kb-split-top { align-items: end; margin-bottom: clamp(1.8rem, 4vw, 2.6rem); }
.kb-steps { display: grid; gap: .7rem; margin: 1.2rem 0 0; padding: 0; list-style: none; counter-reset: kb; }
.kb-steps li { display: grid; grid-template-columns: 2.2rem 1fr; gap: .8rem; align-items: start; padding: .9rem 1rem; }
.kb-steps li::before { counter-increment: kb; content: counter(kb); display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: .7rem; color: var(--teal-dark); background: var(--surface-alt); font-weight: 800; }
.kb-steps strong { display: block; margin-bottom: .15rem; }
/* Seção escura (fundo escuro também no tema claro): cartões numerados escuros, texto claro. */
.section-contrast .kb-steps li { border-color: rgba(222, 247, 247, .14); background: rgba(255, 255, 255, .04); }
.section-contrast .kb-steps strong { color: #f5fbfb; }
.section-contrast .kb-steps p, .section-contrast .kb-split > div > p, .section-contrast figcaption { color: #b7c9cc; }
.section-contrast .kb-steps li::before { color: #5bd4ce; background: rgba(91, 212, 206, .12); }
.kb-list { margin: 1rem 0 0; padding-left: 1.1rem; color: var(--ink-soft); line-height: 1.8; }
.kb-note { margin-top: 1rem; color: var(--ink-soft); font-size: .85rem; }

@media (max-width: 980px) {
  .kb-features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-windows .home-windows-grid, .kb-split { grid-template-columns: 1fr; }
  .kb-split-top .kb-list { margin-top: 0; }
}
@media (max-width: 720px) {
  .kb-hero { padding-bottom: 4rem; }
  .kb-window-bar { padding: .4rem .55rem; }
  .kb-window-bar i { width: .45rem; height: .45rem; }
  .kb-window-bar span { font-size: .62rem; }
  .kb-shot-phone { right: -.3rem; bottom: -1.8rem; width: 30%; padding: 4px; border-radius: 16px; }
  .kb-shot-phone img { border-radius: 12px; }
  .kb-shot-with-phone figcaption { padding-right: 33%; }
}
@media (max-width: 560px) {
  .kb-features { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .home-paths { grid-template-columns: 1fr; }
  .kb-tablist [role="tab"] { padding: .45rem .85rem; font-size: .84rem; }
}

/* 17/10/2026: o Básico saiu da venda; na página inicial a grade "usuários por plano" fica com 5 planos. */
@media (min-width: 1021px) {
  .home-kanban .plan-limit-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

/* ── Modo claro de verdade (17/10/2026, Felipe: "melhora a questão de modo noturno e modo light… pensei que ia mudar as
   imagens também"). Nas páginas Início, Kanban, Estoque e Qualidade: as telas reais e o logo trocam pela versão clara,
   e o cabeçalho, o topo e as faixas escuras ficam claros. O modo escuro continua como era. ── */
.tema-claro { display: none !important; }
html[data-theme="light"] .tema-claro { display: block !important; }
html[data-theme="light"] .tema-escuro { display: none !important; }

/* Cabeçalho e topo (Início, Kanban, Qualidade usam as variáveis do site) */
html[data-theme="light"] :is(.home-kanban, .kb-page, .sgq-landing) :is(.site-header, .hero) {
  --bg: #f4f9f9; --bg-elevated: #ffffff; --ink-inverse: #102226; --muted-inverse: #4d666a; --line-dark: rgba(15, 49, 55, .16);
}
html[data-theme="light"] :is(.home-kanban, .kb-page) .site-header:not([data-scrolled]) { background: transparent; }
html[data-theme="light"] .sgq-landing .sgq-header { background: color-mix(in srgb, #f4f9f9 94%, transparent); border-bottom-color: rgba(15, 49, 55, .1); }
html[data-theme="light"] :is(.home-kanban, .kb-page) .hero { background: radial-gradient(ellipse at 85% -10%, rgba(91, 212, 206, .22), transparent 55%), #eef6f6; color: #102226; }
html[data-theme="light"] :is(.home-kanban, .kb-page) .hero::after { background: none; }
html[data-theme="light"] :is(.hero, .stock-hero, .sgq-hero, .section-contrast) .eyebrow { color: #087c79; }
html[data-theme="light"] .home-kanban .hero-copy .eyebrow b { color: #fff; background: #087c79; }

/* Cartões "por onde começar", abas e moldura do navegador */
html[data-theme="light"] .home-paths a { border-color: rgba(15, 49, 55, .14); background: #ffffff; color: #102226; box-shadow: 0 8px 24px rgba(25, 57, 62, .06); }
html[data-theme="light"] .home-paths a:hover, html[data-theme="light"] .home-paths a:focus-visible { border-color: #2cb3ab; background: #f6fbfb; }
html[data-theme="light"] .home-paths span { color: #087c79; }
html[data-theme="light"] .home-paths small { color: #496166; }
html[data-theme="light"] .kb-tablist [role="tab"] { border-color: rgba(15, 49, 55, .2); color: #102226; background: #ffffff; }
html[data-theme="light"] .kb-tablist [role="tab"][aria-selected="true"] { border-color: #087c79; background: #087c79; color: #ffffff; }
html[data-theme="light"] .kb-window { border-color: rgba(15, 49, 55, .14); background: #ffffff; box-shadow: 0 30px 80px rgba(25, 57, 62, .16); }
html[data-theme="light"] .kb-window-bar { border-bottom-color: rgba(15, 49, 55, .1); background: #eef4f4; }
html[data-theme="light"] .kb-window-bar i { background: #c9d6d6; }
html[data-theme="light"] .kb-window-bar span { background: #ffffff; color: #496166; }
html[data-theme="light"] :is(.kb-hero, .stock-hero, .sgq-hero) .kb-shot figcaption { color: #496166; }
html[data-theme="light"] .kb-shot-phone { border-color: rgba(15, 49, 55, .25); box-shadow: 0 24px 60px rgba(25, 57, 62, .28); }
html[data-theme="light"] .stock-shot-desktop { color: #087c79; }
html[data-theme="light"] .kb-dialog-shot img { border-color: rgba(15, 49, 55, .14); box-shadow: 0 30px 70px rgba(25, 57, 62, .16); }

/* Faixas escuras da página /kanban ficam claras no modo claro */
html[data-theme="light"] .kb-page .section-contrast { background: #e6f1f1; color: #102226; }
html[data-theme="light"] .kb-page .section-contrast .kb-steps li { border-color: rgba(15, 49, 55, .12); background: #ffffff; }
html[data-theme="light"] .kb-page .section-contrast .kb-steps strong { color: #102226; }
html[data-theme="light"] .kb-page .section-contrast :is(.kb-steps p, .kb-split > div > p, figcaption) { color: #496166; }
html[data-theme="light"] .kb-page .section-contrast .kb-steps li::before { color: #087c79; background: #e5eeee; }

/* Topo do Estoque (cabeçalho e cores próprios da página) */
html[data-theme="light"] .stock-landing .stock-header { border-bottom-color: rgba(15, 49, 55, .1); background: rgba(244, 249, 249, .96); color: #102226; }
html[data-theme="light"] .stock-landing .stock-header[data-scrolled] { background: rgba(244, 249, 249, .96); box-shadow: 0 12px 30px rgba(25, 57, 62, .12); }
html[data-theme="light"] .stock-landing .stock-header :is(a, nav a) { color: #102226; }
html[data-theme="light"] .stock-landing .stock-header .button-quiet { color: #102226; border-color: rgba(15, 49, 55, .2); background: #ffffff; }
html[data-theme="light"] .stock-landing .stock-header .button-primary { color: #082326; }
html[data-theme="light"] .stock-landing .stock-hero { background: radial-gradient(ellipse at 85% -10%, rgba(91, 212, 206, .22), transparent 55%), #eef6f6; color: #102226; }
html[data-theme="light"] .stock-landing .stock-lead { color: #496166; }
html[data-theme="light"] .stock-landing .stock-cta-note { color: #087c79; }
html[data-theme="light"] .stock-landing .stock-hero .button-secondary { color: #102226; border-color: rgba(15, 49, 55, .2); background: #ffffff; }

/* Topo da Qualidade */
html[data-theme="light"] .sgq-landing .sgq-hero { background: radial-gradient(ellipse at 85% -10%, rgba(91, 212, 206, .22), transparent 55%), #eef6f6; color: #102226; }
html[data-theme="light"] .sgq-landing :is(.sgq-hero-lead, .sgq-hero-facts) { color: #496166; }
html[data-theme="light"] .sgq-landing .opening-platform-note { color: #087c79; }
html[data-theme="light"] .sgq-landing .sgq-hero .button-secondary { color: #102226; border-color: rgba(15, 49, 55, .2); background: #ffffff; }
