/* SIGMA COGNIS — landing page (modo Persuade, corte 25).
   Superfície separada do console: o DESIGN.md rege o console, não esta página.
   Paleta da marca; tokens locais para não acoplar a landing ao app.css. */

:root {
  --navy: #14263e;
  --navy-deep: #0d1b30;
  --teal: #55b9c7;
  --teal-deep: #278b9b;
  --canvas: #f3f6f9;
  --surface: #ffffff;
  --ink: #17263b;
  --muted: #5d6f84;
  --border: #d8e1e9;
  --on-navy: #dce8f2;
  --on-navy-muted: #9fb4c9;
  --warning: #8a5a13;
  --radius-lg: 16px;
  --radius-md: 12px;
  --shadow-soft: 0 18px 48px rgba(13, 27, 48, 0.16);
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }

.landing {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.landing ::selection { background: rgba(85, 185, 199, 0.35); color: var(--navy-deep); }
.landing { caret-color: var(--teal-deep); }
.landing a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.landing :focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 4px; }

.landing { scrollbar-color: var(--teal) var(--canvas); scrollbar-width: thin; }

.l-wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 28px; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 10;
  background: var(--surface); color: var(--navy); padding: 12px 18px; border-radius: 0 0 12px 0;
}
.skip:focus { left: 0; }

/* ---------------------------------------------------------------- topo */

.l-top {
  background: var(--navy);
  color: var(--on-navy);
  border-bottom: 1px solid rgba(220, 232, 242, 0.12);
}
.l-top-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  min-height: 76px;
}
.l-brand {
  display: inline-flex; align-items: center; gap: 12px;
  text-decoration: none; font-size: 0.9375rem; font-weight: 650; letter-spacing: 0.14em;
  color: #ffffff; text-transform: uppercase;
}
.l-brand img { display: block; width: 34px; height: auto; }
.l-brand b { font-weight: 650; color: var(--teal); }

.l-nav { display: flex; align-items: center; gap: 26px; font-size: 0.9375rem; }
.l-nav a { text-decoration: none; color: var(--on-navy-muted); padding: 8px 0; }
.l-nav a:hover { color: #ffffff; }
.l-nav a.l-nav-enter,
.l-nav .l-nav-enter {
  color: var(--navy-deep); background: var(--teal); font-weight: 650;
  padding: 10px 18px; border-radius: 6px; border: 0; font-family: inherit; font-size: inherit;
  cursor: pointer;
}
.l-nav a.l-nav-enter:hover,
.l-nav .l-nav-enter:hover { background: #ffffff; color: var(--navy); }
.l-logout { margin: 0; display: inline-flex; }

/* ---------------------------------------------------------------- herói */

.l-hero {
  background:
    radial-gradient(1200px 520px at 82% -10%, rgba(85, 185, 199, 0.20), transparent 62%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: #ffffff;
  padding: 76px 0 92px;
}
.l-hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
  gap: 56px; align-items: center;
}
.l-hero h1 {
  margin: 0 0 20px;
  font-size: clamp(2.35rem, 4.6vw, 3.85rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
  font-weight: 700;
  text-wrap: balance;
  max-width: 16ch;
}
.l-hero h1 em { font-style: normal; color: var(--teal); }
.l-lead {
  margin: 0 0 28px; max-width: 52ch;
  font-size: 1.0625rem; line-height: 1.65; color: var(--on-navy);
}

/* Falha no retorno do OIDC: o callback traz ?login-falhou=1 para a landing. */
.l-alert {
  display: grid; gap: 4px; margin: 0 0 24px; max-width: 52ch;
  padding: 14px 16px; border-radius: 10px;
  border: 1px solid rgba(255, 176, 164, 0.55);
  background: rgba(165, 51, 47, 0.22);
  color: #ffe6e2; font-size: 0.9375rem;
}
.l-alert strong { font-weight: 650; }
.l-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 36px; }
.l-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 22px; border-radius: 8px;
  font-size: 1rem; font-weight: 650; text-decoration: none;
  transition: background-color 180ms var(--ease), color 180ms var(--ease), transform 180ms var(--ease);
}
.l-btn-primary,
.landing a.l-btn-primary { background: var(--teal); color: var(--navy-deep); }
.l-btn-primary:hover,
.landing a.l-btn-primary:hover { background: #ffffff; color: var(--navy); }
.l-btn-ghost,
.landing a.l-btn-ghost { border: 1px solid rgba(220, 232, 242, 0.40); color: #ffffff; }
.l-btn-ghost:hover,
.landing a.l-btn-ghost:hover { border-color: var(--teal); color: var(--teal); }

.l-facts { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; max-width: 46ch; }
.l-facts li {
  display: grid; grid-template-columns: 18px 1fr; gap: 10px; align-items: start;
  font-size: 0.9375rem; color: var(--on-navy);
}
.l-facts svg { width: 18px; height: 18px; margin-top: 3px; stroke: var(--teal); }

.l-hero-shot { margin: 0; }
.l-hero-shot img {
  display: block; width: 100%; height: auto;
  border-radius: var(--radius-md);
  border: 1px solid rgba(220, 232, 242, 0.18);
  box-shadow: var(--shadow-soft);
}
.l-hero-shot figcaption {
  margin-top: 12px; font-size: 0.8125rem; color: var(--on-navy-muted); letter-spacing: 0.01em;
}

/* ---------------------------------------------------------------- seções */

.l-section { padding: 84px 0; }
.l-section + .l-section { border-top: 1px solid var(--border); }
.l-h2 {
  margin: 0 0 14px; font-size: clamp(1.7rem, 2.6vw, 2.35rem);
  line-height: 1.12; letter-spacing: -0.025em; font-weight: 700; text-wrap: balance;
  max-width: 30ch;
}
.l-sub { margin: 0 0 44px; max-width: 64ch; color: var(--muted); font-size: 1.0625rem; }

/* operação: linha do tempo horizontal */
.l-timeline {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0; margin: 0; padding: 0; list-style: none;
  border-top: 1px solid var(--border);
}
.l-timeline li {
  padding: 26px 26px 0 0;
  border-right: 1px solid var(--border);
}
.l-timeline li:last-child { border-right: 0; padding-right: 0; }
.l-timeline h3 {
  margin: 0 0 8px; font-size: 1.0625rem; font-weight: 650; letter-spacing: -0.01em;
}
.l-timeline p { margin: 0 0 18px; color: var(--muted); font-size: 0.9375rem; max-width: 34ch; }
.l-timeline img {
  display: block; width: 100%; height: auto; border-radius: var(--radius-md);
  border: 1px solid var(--border); background: var(--surface);
}
.l-timeline .l-pending {
  display: grid; place-content: start; gap: 8px; min-height: 148px;
  border: 1px dashed var(--border); border-radius: var(--radius-md);
  padding: 16px; color: var(--muted); font-size: 0.875rem; background: rgba(255, 255, 255, 0.6);
}
.l-pending strong { color: var(--warning); font-weight: 650; }

/* ---------------------------------------------------------------- cubo */

.l-cube-section { background: var(--navy); color: #ffffff; }
.l-cube-section.l-section + .l-section { border-top: 0; }
.l-cube-section .l-h2 { color: #ffffff; }
.l-cube-section .l-sub { color: var(--on-navy); }
.l-cube-grid {
  display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
  gap: 64px; align-items: center;
}

.cube-stage {
  perspective: 1000px;
  display: grid; place-items: center;
  min-height: 340px;
}
.cube {
  position: relative; width: 220px; height: 220px;
  transform-style: preserve-3d;
  animation: cube-spin 60s linear infinite;
  transition: transform 900ms var(--ease);
}
.cube-face {
  position: absolute; inset: 0;
  display: grid; place-content: center; gap: 10px; text-align: center;
  background: linear-gradient(158deg, #1d3a5e 0%, #0f2038 100%);
  border: 1px solid rgba(85, 185, 199, 0.55);
  border-radius: 4px;
  box-shadow: inset 0 0 48px rgba(85, 185, 199, 0.10);
  color: #eaf4f8;
}
.cube-face .sigma { font-size: 3rem; line-height: 1; color: var(--teal); font-weight: 600; }
.cube-face span { font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--on-navy); }

.f-front  { transform: translateZ(110px); }
.f-right  { transform: rotateY(90deg) translateZ(110px); }
.f-back   { transform: rotateY(180deg) translateZ(110px); }
.f-left   { transform: rotateY(-90deg) translateZ(110px); }
.f-top    { transform: rotateX(90deg) translateZ(110px); }
.f-bottom { transform: rotateX(-90deg) translateZ(110px); }

@keyframes cube-spin {
  /* Começa inclinado (16°) para o volume aparecer de imediato: em 0° a face
     frontal esconde o cubo e ele lê como um retângulo escuro. */
  from { transform: rotateX(-14deg) rotateY(16deg); }
  to   { transform: rotateX(-14deg) rotateY(376deg); }
}

/* face escolhida pela lista (JS opcional); sem JS o giro continua.
   Cada alvo fica 10° fora do eixo para o volume continuar visível. */
.cube[data-face="secretaria"]  { animation: none; transform: rotateX(-14deg) rotateY(10deg); }
.cube[data-face="financeiro"]  { animation: none; transform: rotateX(-14deg) rotateY(-80deg); }
.cube[data-face="pedagogico"]  { animation: none; transform: rotateX(-14deg) rotateY(-170deg); }
.cube[data-face="acesso"]      { animation: none; transform: rotateX(-14deg) rotateY(-260deg); }
.cube[data-face="inteligencia"]{ animation: none; transform: rotateX(-104deg) rotateY(10deg); }
.cube[data-face="familia"]     { animation: none; transform: rotateX(76deg) rotateY(10deg); }

.l-face-list {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px;
  margin: 26px 0 22px; padding: 0; list-style: none;
}
.l-face-list button {
  width: 100%; min-height: 46px; padding: 10px 12px;
  background: transparent; color: var(--on-navy);
  border: 1px solid rgba(159, 180, 201, 0.35); border-radius: 6px;
  font: inherit; font-size: 0.875rem; font-weight: 600; cursor: pointer;
  transition: border-color 160ms var(--ease), color 160ms var(--ease), background-color 160ms var(--ease);
}
.l-face-list button:hover,
.l-face-list button:focus-visible {
  border-color: var(--teal); color: #ffffff; background: rgba(85, 185, 199, 0.10);
}

.l-face-panel { min-height: 232px; }
.l-face-panel > div { display: grid; gap: 12px; }
.l-face-panel > div[hidden] { display: none; }
.l-face-panel figure { margin: 0; }
.l-face-panel img {
  display: block; width: 100%; height: auto; max-width: 460px;
  border-radius: 10px; border: 1px solid rgba(220, 232, 242, 0.18);
}
.l-face-panel p { margin: 0; color: var(--on-navy); font-size: 0.9375rem; max-width: 46ch; }
.l-face-noshot {
  display: grid; place-content: center; gap: 6px; min-height: 180px; max-width: 460px;
  border: 1px dashed rgba(159, 180, 201, 0.45); border-radius: 10px; padding: 20px;
  color: var(--on-navy-muted); font-size: 0.9375rem; text-align: center;
}
.l-face-noshot strong { color: var(--teal); font-weight: 650; }

/* ---------------------------------------------------------------- confiança */

.l-trust-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 56px; }
.l-trust h2 { max-width: 24ch; }
.l-trust-list { display: grid; gap: 26px; margin: 0; padding: 0; list-style: none; }
.l-trust-list li { display: grid; grid-template-columns: 26px 1fr; gap: 14px; align-items: start; }
.l-trust-list svg { width: 24px; height: 24px; stroke: var(--teal-deep); margin-top: 2px; }
.l-trust-list h3 { margin: 0 0 6px; font-size: 1.0625rem; font-weight: 650; letter-spacing: -0.01em; }
.l-trust-list p { margin: 0; color: var(--muted); font-size: 0.9375rem; max-width: 52ch; }

/* ---------------------------------------------------------------- módulos */

.l-modules-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.l-col h3 {
  margin: 0 0 14px; font-size: 0.75rem; font-weight: 650; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--muted);
  padding-bottom: 10px; border-bottom: 1px solid var(--border);
}
.l-col ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.l-col li { display: flex; gap: 10px; align-items: baseline; font-size: 0.9375rem; }
.l-col li::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--teal-deep); flex: none; transform: translateY(-2px);
}
.l-col.is-building li::before { background: var(--border); }

/* ---------------------------------------------------------------- rodapé */

.l-foot { background: var(--navy-deep); color: var(--on-navy); padding: 56px 0 40px; }
.l-foot-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 40px; align-items: start; }
/* O wordmark oficial é navy: sobre o rodapé escuro ele precisa de um suporte claro.
   Nada é recolorido — o arquivo do kit é exibido como está. */
.l-foot-lockup {
  display: inline-block; background: #ffffff; padding: 12px 16px; border-radius: 10px;
}
.l-foot-lockup img { width: 168px; height: auto; display: block; }
.l-foot p { margin: 14px 0 0; font-size: 0.8125rem; color: var(--on-navy-muted); max-width: 40ch; }
.l-foot h4 {
  margin: 0 0 12px; font-size: 0.6875rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--on-navy-muted); font-weight: 650;
}
.l-foot ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 0.9375rem; }
.l-foot a { color: var(--on-navy); text-decoration-color: rgba(159, 180, 201, 0.6); }
.l-foot a:hover { color: var(--teal); }
.l-foot-legal {
  margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(159, 180, 201, 0.20);
  display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between;
  font-size: 0.8125rem; color: var(--on-navy-muted);
}

/* onboarding self-service (corte 00f) */

.l-onboarding { border-top: 1px solid var(--border); }
.l-onboarding-grid {
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 64px; align-items: start;
}
.l-onboarding .l-sub { margin-bottom: 24px; }
.l-onboarding-note {
  display: grid; gap: 4px; max-width: 46ch; margin-top: 20px;
  padding: 14px 16px; border-radius: 10px;
  border: 1px solid rgba(138, 90, 19, 0.35);
  background: rgba(138, 90, 19, 0.10);
  color: var(--warning); font-size: 0.9375rem;
}
.l-onboarding-note.is-ok {
  border-color: rgba(39, 139, 155, 0.35);
  background: rgba(39, 139, 155, 0.10);
  color: var(--teal-deep);
}
.l-onboarding-note strong { font-weight: 650; }

.l-onboarding-form {
  display: grid; gap: 18px;
  padding: 28px; border: 1px solid var(--border); border-radius: var(--radius-lg);
  background: var(--surface); box-shadow: var(--shadow-soft);
}
.l-field { display: grid; gap: 6px; }
.l-field label { font-size: 0.9375rem; font-weight: 600; color: var(--navy); }
.l-field label span { font-weight: 400; color: var(--muted); }
.l-field input,
.l-field textarea {
  width: 100%; padding: 11px 12px; font: inherit; font-size: 0.9375rem;
  color: var(--ink); background: #ffffff;
  border: 1px solid var(--border); border-radius: 8px;
  resize: vertical;
}
.l-field input:focus-visible,
.l-field textarea:focus-visible { outline: 2px solid var(--teal); outline-offset: 1px; border-color: var(--teal-deep); }
.l-onboarding-form .l-btn { border: 0; cursor: pointer; background: var(--teal); color: var(--navy-deep); }
.l-onboarding-form .l-btn:hover { background: var(--teal-deep); color: #ffffff; }
.l-onboarding-fine { margin: 0; font-size: 0.8125rem; color: var(--muted); }

/* ---------------------------------------------------------------- responsivo */

@media (max-width: 1020px) {
  .l-hero-grid, .l-cube-grid, .l-trust-grid, .l-onboarding-grid { grid-template-columns: minmax(0, 1fr); gap: 44px; }
  .l-hero { padding: 56px 0 64px; }
  .l-hero-shot { order: -1; }
  .l-timeline { grid-template-columns: minmax(0, 1fr); border-top: 0; }
  .l-timeline li {
    border-right: 0; border-top: 1px solid var(--border);
    padding: 22px 0 28px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0 28px; align-items: start;
  }
  .l-timeline h3, .l-timeline p { grid-column: 1; }
  .l-timeline img, .l-timeline .l-pending { grid-column: 2; grid-row: 1 / span 3; align-self: start; }
  .l-modules-grid, .l-foot-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
}

@media (max-width: 720px) {
  .l-wrap { padding: 0 20px; }
  .l-top-inner { min-height: 64px; }
  .l-nav { gap: 14px; font-size: 0.875rem; }
  .l-nav a:not(.l-nav-enter) { display: none; }
  .l-hero h1 { max-width: none; }
  .l-section { padding: 56px 0; }
  .l-onboarding-form { padding: 20px; }
  .cube-stage { min-height: 240px; }
  .cube { width: 150px; height: 150px; }
  .f-front  { transform: translateZ(75px); }
  .f-right  { transform: rotateY(90deg) translateZ(75px); }
  .f-back   { transform: rotateY(180deg) translateZ(75px); }
  .f-left   { transform: rotateY(-90deg) translateZ(75px); }
  .f-top    { transform: rotateX(90deg) translateZ(75px); }
  .f-bottom { transform: rotateX(-90deg) translateZ(75px); }
  .cube-face .sigma { font-size: 2.1rem; }
  .cube-face span { font-size: 0.625rem; letter-spacing: 0.10em; }
  .l-face-list { grid-template-columns: 1fr 1fr; }
  .l-timeline li { grid-template-columns: minmax(0, 1fr); }
  .l-timeline img, .l-timeline .l-pending { grid-column: 1; grid-row: auto; }
  .l-foot-lockup img { width: 140px; }
}

@media (prefers-reduced-motion: reduce) {
  .landing * { animation: none !important; transition: none !important; }
  .cube { transform: rotateX(-14deg) rotateY(10deg); }
}
