/* ==========================================================================
   LPE.OS — Folha de estilo compartilhada
   Tema: claro e minimalista
   ========================================================================== */

:root {
  /* Cores — identidade PANI Engenharia */
  --bg:            #f5f3ee;
  --surface:       #ffffff;
  --surface-alt:   #f8f7f3;
  --border:        #e4e2da;
  --border-strong: #d2cec2;

  --text:          #19243a;
  --text-soft:     #687386;
  --text-muted:    #9aa3b2;

  --accent:        #04295e;
  --accent-soft:   #e9edf4;
  --accent-dark:   #021b42;

  --gold:          #c8993b;
  --gold-soft:     #f6ead0;

  --ok:            #187553;
  --warn:          #a86713;
  --warn-soft:     #f6ead0;

  /* Formas */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-full: 999px;

  /* Sombras */
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .05);
  --shadow-md: 0 4px 12px rgba(16, 24, 40, .07);
  --shadow-lg: 0 12px 28px rgba(16, 24, 40, .10);

  /* Tipografia */
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;
  --mono: "SFMono-Regular", ui-monospace, Menlo, Consolas, monospace;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  padding: 0;
  position: relative;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

/* Fundo de prancha técnica — camada fixa, sutil, atrás de todo o conteúdo */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background: url("../img/fundo.jpg") center / cover no-repeat fixed;
  opacity: .72;
}

/* Véu que garante a leitura do texto sobre o fundo */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(115% 75% at 50% 12%, rgba(245,243,238,.55) 0%, rgba(245,243,238,.82) 52%, rgba(245,243,238,.94) 100%);
}

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

::selection { background: var(--accent-soft); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

/* ------------------------------------------------------------------ Layout */

.shell {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  padding: 56px 20px 40px;
}

.shell--wide { max-width: 880px; }

/* ------------------------------------------------------------- Cabeçalho LP */

.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  margin-bottom: 36px;
}

.brand__mark {
  width: 76px;
  height: 76px;
  border-radius: var(--r-full);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  display: grid;
  place-items: center;
  font-weight: 650;
  font-size: 21px;
  letter-spacing: .04em;
  color: var(--accent);
  overflow: hidden;
}

.brand__mark img { width: 100%; height: 100%; object-fit: cover; }

/* Logo completo (símbolo + assinatura) no lugar do círculo */
.brand__logo {
  width: 100%;
  max-width: 268px;
  height: auto;
  display: block;
}

.brand__name {
  margin: 0;
  font-size: 26px;
  font-weight: 650;
  letter-spacing: -.02em;
}

.brand__name span { color: var(--text-muted); font-weight: 450; }

.brand__desc {
  margin: -8px 0 0;
  color: var(--text-soft);
  font-size: 14.5px;
  max-width: 34ch;
}

/* ----------------------------------------------------------------- Módulos */

.modules {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.module {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: rgba(255, 255, 255, .92);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

/* Filete dourado que aparece no hover */
.module::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--gold);
  transform: scaleY(0);
  transform-origin: center;
  transition: transform .18s ease;
}

.module:hover::before { transform: scaleY(1); }

.module:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
  background: #fff;
}

.module:active { transform: translateY(0); }

.module__icon {
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: var(--r-sm);
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
}

.module__icon svg { width: 21px; height: 21px; }

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

.module__title {
  display: block;
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: -.01em;
}

.module__desc {
  display: block;
  font-size: 13px;
  color: var(--text-soft);
  margin-top: 1px;
}

.module__arrow {
  flex: none;
  color: var(--text-muted);
  transition: transform .16s ease, color .16s ease;
}

.module:hover .module__arrow { color: var(--gold); transform: translateX(2px); }

.module__arrow svg { width: 17px; height: 17px; display: block; }

/* Estado desativado / sem link */
.module--off {
  cursor: default;
  opacity: .62;
  box-shadow: none;
}
.module--off::before { display: none; }
.module--off:hover { transform: none; box-shadow: none; border-color: var(--border); }
.module--off .module__icon { background: var(--surface-alt); color: var(--text-muted); }

.tag {
  flex: none;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .02em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: var(--r-full);
  background: var(--warn-soft);
  color: var(--warn);
}

/* ------------------------------------------------------------------ Rodapé */

.foot {
  margin-top: 34px;
  text-align: center;
  font-size: 12.5px;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.foot a { color: var(--text-soft); border-bottom: 1px solid var(--border-strong); }
.foot a:hover { color: var(--accent); border-color: var(--accent); }

/* ================================================== Páginas internas (módulos) */

.page-head {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding-bottom: 22px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--border);
}

.page-head__icon {
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: var(--r-md);
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
}
.page-head__icon svg { width: 23px; height: 23px; }

.page-head__text { flex: 1; min-width: 0; }

.page-head h1 {
  margin: 0;
  font-size: 22px;
  font-weight: 650;
  letter-spacing: -.02em;
}

.page-head p {
  margin: 3px 0 0;
  color: var(--text-soft);
  font-size: 14px;
}

.back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  color: var(--text-soft);
  padding: 7px 12px 7px 9px;
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  background: rgba(255, 255, 255, .92);
  margin-bottom: 24px;
  transition: border-color .16s ease, color .16s ease;
}
.back:hover { color: var(--accent); border-color: var(--border-strong); }
.back svg { width: 15px; height: 15px; }

.card {
  background: rgba(255, 255, 255, .94);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 16px;
}

.card > h2 {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 620;
  letter-spacing: -.01em;
}

.card > h2 + p {
  margin: 0 0 18px;
  font-size: 13.5px;
  color: var(--text-soft);
}

.soon {
  border-style: dashed;
  border-color: var(--border-strong);
  background: var(--surface-alt);
  box-shadow: none;
  text-align: center;
  padding: 34px 22px;
}

.soon h2 { margin: 0 0 6px; font-size: 15px; }
.soon p { margin: 0 auto; max-width: 46ch; font-size: 13.5px; color: var(--text-soft); }

.checklist {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  text-align: left;
  display: inline-flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13.5px;
  color: var(--text-soft);
}

.checklist li { display: flex; align-items: flex-start; gap: 9px; }

.checklist li::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  margin-top: 8px;
  border-radius: var(--r-full);
  background: var(--border-strong);
}

/* ------------------------------------------------------------ Formulários */

.field { margin-bottom: 16px; }

.field label {
  display: block;
  font-size: 13px;
  font-weight: 560;
  color: var(--text-soft);
  margin-bottom: 6px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 10px 12px;
  font: inherit;
  font-size: 14.5px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-sm);
  transition: border-color .16s ease, box-shadow .16s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.field .hint {
  margin: 6px 0 0;
  font-size: 12px;
  color: var(--text-muted);
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 16px;
}

@media (max-width: 560px) {
  .grid-2 { grid-template-columns: 1fr; }
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: inherit;
  font-size: 14px;
  font-weight: 560;
  padding: 10px 18px;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  transition: background .16s ease;
}
.btn:hover { background: var(--accent-dark); }

.btn--ghost {
  background: var(--surface);
  color: var(--text-soft);
  border-color: var(--border-strong);
}
.btn--ghost:hover { background: var(--surface-alt); color: var(--text); }

.btn-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

.saved {
  font-size: 13px;
  color: var(--ok);
  opacity: 0;
  transition: opacity .2s ease;
}
.saved.is-on { opacity: 1; }

.note {
  font-size: 12.5px;
  color: var(--text-muted);
  border-left: 2px solid var(--border-strong);
  padding-left: 12px;
  margin: 20px 0 0;
}
