/* ==========================================================================
   pontoAi — Design system v4 (neobrutalismo)
   Gramática: borda grossa preta + preenchimento chapado + sombra dura sem blur.
   Cantos retos. Sem gradientes. Laranja da marca como acento principal.
   ========================================================================== */

:root {
  --ink-950: #000000;
  --ink-800: #1b1b1b;
  --mist-50: #fffcf5;
  --surface: #fff6e8;
  --white: #ffffff;

  --orange-500: #ff751f;
  --orange-600: #e65a0f;
  --orange-300: #ffb27a;

  --violet-600: #b8a9fa;
  --violet-300: #d6cdff;

  --teal-500: #0f9b7e;
  --rust-500: #d64545;
  --yellow: #ffd23f;
  --pink: #ff6b6b;

  --ink-muted: #4a4640;
  --border-soft: #000000;

  --font-display: "Bricolage Grotesque", "Figtree", sans-serif;
  --font-body:
    "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "Space Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Tokens neobrutalistas */
  --bw: 3px;
  --bwl: 4px;
  --radius-sm: 0;
  --radius-md: 0;
  --shadow-sm: 3px 3px 0 0 #000;
  --shadow-card: 6px 6px 0 0 #000;
  --shadow-lg: 10px 10px 0 0 #000;
  --sidebar-width: 248px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--ink-950);
  background: var(--mist-50);
  line-height: 1.55;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--ink-950);
  margin: 0 0 0.5em;
  line-height: 1.04;
  letter-spacing: -0.025em;
  text-transform: uppercase;
}

p {
  margin: 0 0 1em;
  color: var(--ink-muted);
}
.hidden {
  display: none !important;
}
a {
  color: var(--ink-950);
  font-weight: 700;
}
button {
  font-family: var(--font-body);
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid #1b6ef3;
  outline-offset: 3px;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------------- Scroll reveal (um único efeito orquestrado) ---------------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.7s var(--ease),
    transform 0.7s var(--ease);
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

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

#marketing-header {
  background: var(--ink-950);
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: var(--bwl) solid var(--ink-950);
}

.header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  background: var(--white);
  border: var(--bw) solid var(--white);
  padding: 6px 12px 6px 8px;
}
.logo-icon {
  width: 32px;
  height: 32px;
}
.hand {
  transform-origin: 50px 50px;
}
.hand-min {
  animation: tick-min 6s linear infinite;
}
.hand-hr {
  animation: tick-hr 24s linear infinite;
}
@keyframes tick-min {
  to {
    transform: rotate(360deg);
  }
}
@keyframes tick-hr {
  to {
    transform: rotate(360deg);
  }
}

.logo-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--ink-950);
  letter-spacing: -0.03em;
  font-size: 24px;
}

nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

nav a {
  text-decoration: none;
  color: #ffffff;
  font-size: 0.93rem;
  font-weight: 700;
  position: relative;
  padding: 9px 12px;
  border: var(--bw) solid transparent;
}
nav a::after {
  content: "";
  position: absolute;
  left: 12px;
  bottom: 4px;
  height: 3px;
  width: 0;
  background: var(--orange-500);
  transition: width 0.2s var(--ease);
}
nav a:hover::after {
  width: calc(100% - 24px);
}
nav a:hover {
  color: #ffffff;
}
nav a.active {
  color: var(--ink-950);
  background: var(--orange-500);
  border-color: var(--ink-950);
  box-shadow: var(--shadow-sm);
}
nav a.active::after {
  display: none;
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  background: var(--white);
  border: var(--bw) solid var(--ink-950);
  box-shadow: var(--shadow-sm);
  width: 42px;
  height: 42px;
  padding: 0;
}
.mobile-menu-toggle span {
  display: block;
  width: 20px;
  height: 3px;
  background: var(--ink-950);
  transition:
    transform 0.25s var(--ease),
    opacity 0.25s var(--ease);
}
.mobile-menu-toggle.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.mobile-menu-toggle.open span:nth-child(2) {
  opacity: 0;
}
.mobile-menu-toggle.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.btn-nav-accent {
  background: var(--orange-500);
  color: var(--ink-950) !important;
  padding: 9px 18px !important;
  border: var(--bw) solid var(--ink-950) !important;
  box-shadow: var(--shadow-sm);
  font-weight: 800 !important;
  transition:
    transform 0.1s var(--ease),
    box-shadow 0.1s var(--ease),
    background 0.1s var(--ease);
}
.btn-nav-accent::after {
  display: none;
}
.btn-nav-accent:hover {
  background: var(--orange-300);
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 0 #000;
}
.btn-nav-accent:active {
  transform: translate(3px, 3px);
  box-shadow: none;
}

.sticky-cta {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 60;
  background: var(--orange-500);
  color: var(--ink-950);
  border: var(--bw) solid var(--ink-950);
  padding: 13px 22px;
  border-radius: 0;
  font-weight: 800;
  font-size: 0.92rem;
  box-shadow: var(--shadow-card);
  transition:
    opacity 0.3s var(--ease),
    transform 0.15s var(--ease),
    box-shadow 0.15s var(--ease);
}
.sticky-cta:hover {
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0 0 #000;
}
.sticky-cta:active {
  transform: translate(3px, 3px);
  box-shadow: none;
}
.sticky-cta.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  display: block !important;
}

/* ---------------- Hero ---------------- */

.hero-section {
  position: relative;
  padding: 80px 0 72px;
  overflow: hidden;
  background: var(--orange-500);
  border-bottom: var(--bwl) solid var(--ink-950);
}

/* Textura de pontos no lugar do brilho difuso */
.hero-glow {
  position: absolute;
  inset: 0;
  top: auto;
  right: auto;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(#000 1.6px, transparent 1.6px);
  background-size: 22px 22px;
  opacity: 0.16;
  filter: none;
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.badge-top {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-950);
  background: var(--white);
  border: var(--bw) solid var(--ink-950);
  box-shadow: var(--shadow-sm);
  padding: 7px 14px;
  border-radius: 0;
  margin-bottom: 22px;
  transform: rotate(-2deg);
}

.hero-copy h1 {
  font-size: 3.1rem;
  max-width: 14ch;
  margin-bottom: 20px;
  font-weight: 800;
  color: var(--ink-950);
}
.hero-subtitle {
  font-size: 1.1rem;
  max-width: 46ch;
  color: #241800;
  font-weight: 500;
}

.hero-buttons {
  display: flex;
  gap: 14px;
  margin-top: 26px;
  flex-wrap: wrap;
}

.btn-hero-primary,
.btn-hero-secondary {
  padding: 14px 26px;
  border-radius: 0;
  font-weight: 800;
  font-size: 1rem;
  border: var(--bw) solid var(--ink-950);
  box-shadow: var(--shadow-card);
  transition:
    transform 0.1s var(--ease),
    background 0.1s var(--ease),
    box-shadow 0.1s var(--ease);
}

.btn-hero-primary {
  background: var(--ink-950);
  color: var(--mist-50);
}
.btn-hero-primary:hover {
  background: var(--ink-800);
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0 0 #000;
}
.btn-hero-primary:active {
  transform: translate(3px, 3px);
  box-shadow: none;
}

.btn-hero-secondary {
  background: var(--white);
  color: var(--ink-950);
}
.btn-hero-secondary:hover {
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0 0 #000;
}
.btn-hero-secondary:active {
  transform: translate(3px, 3px);
  box-shadow: none;
}

.hero-trust-row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 22px;
  font-size: 0.82rem;
  color: #241800;
  font-family: var(--font-mono);
  font-weight: 700;
}

/* --- Demonstração animada (cartão -> planilha) --- */

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  gap: 4px;
}

.demo-card {
  background: var(--white);
  border: var(--bw) solid var(--ink-950);
  border-radius: 0;
  box-shadow: var(--shadow-lg);
  padding: 16px;
  width: 200px;
  font-size: 0.78rem;
  font-family: var(--font-mono);
}

.demo-punchcard {
  animation: float 5s ease-in-out infinite;
  transform: rotate(-2deg);
}
@keyframes float {
  0%,
  100% {
    transform: rotate(-2deg) translateY(0);
  }
  50% {
    transform: rotate(-2deg) translateY(-8px);
  }
}

.demo-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.66rem;
  letter-spacing: 0.04em;
  color: var(--ink-950);
  font-weight: 700;
  text-transform: uppercase;
  border-bottom: var(--bw) solid var(--ink-950);
  padding-bottom: 8px;
  margin-bottom: 8px;
}

.demo-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
  padding: 5px 0;
  color: var(--ink-950);
  font-weight: 700;
}

.demo-arrow {
  width: 60px;
  height: 30px;
  flex-shrink: 0;
}
#demo-arrow-path {
  animation: dash-flow 1.4s linear infinite;
  stroke: #000;
  stroke-width: 3;
}
@keyframes dash-flow {
  to {
    stroke-dashoffset: -28;
  }
}

.demo-sheet {
  position: relative;
  background: var(--yellow);
  transform: rotate(2deg);
}
.demo-status-dot {
  width: 10px;
  height: 10px;
  border-radius: 0;
  background: var(--teal-500);
  border: 2px solid var(--ink-950);
  animation: dot-pulse 1.8s ease-out infinite;
}
@keyframes dot-pulse {
  0% {
    opacity: 1;
  }
  70% {
    opacity: 0.25;
  }
  100% {
    opacity: 1;
  }
}

.demo-sheet-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  padding: 5px 0;
  opacity: 0;
  transform: translateX(-6px);
  animation: sheet-fill 4.5s var(--ease) infinite;
  font-weight: 700;
}
.demo-sheet-r1 {
  animation-delay: 0.2s;
}
.demo-sheet-r2 {
  animation-delay: 0.7s;
}
.demo-sheet-r3 {
  animation-delay: 1.2s;
}
@keyframes sheet-fill {
  0% {
    opacity: 0;
    transform: translateX(-6px);
  }
  10%,
  90% {
    opacity: 1;
    transform: translateX(0);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

.demo-sheet-total {
  margin-top: 10px;
  padding-top: 8px;
  border-top: var(--bw) solid var(--ink-950);
  font-weight: 700;
  color: var(--ink-950);
  font-size: 0.82rem;
}

/* ---------------- Como funciona ---------------- */

.how-section {
  padding: 72px 0;
  background: var(--white);
  border-bottom: var(--bwl) solid var(--ink-950);
}

.section-header {
  max-width: 56ch;
  margin-bottom: 44px;
}
.section-header.center {
  max-width: 60ch;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.section-header.light h2 {
  color: var(--white);
}
.section-header.light p {
  color: #c9c5bf;
}
.section-header h2 {
  font-size: 2.1rem;
}

.steps-row {
  display: flex;
  align-items: stretch;
  gap: 0;
}
.step-item {
  flex: 1;
  text-align: left;
  padding: 22px;
  background: var(--mist-50);
  border: var(--bw) solid var(--ink-950);
  box-shadow: var(--shadow-card);
}

.step-number {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--mist-50);
  background: var(--ink-950);
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 2px solid var(--ink-950);
  margin-bottom: 14px;
}
.step-item h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}
.step-item p {
  font-size: 0.9rem;
  margin: 0;
  max-width: 28ch;
}

.step-connector {
  width: 44px;
  height: 6px;
  background: var(--ink-950);
  align-self: center;
  flex-shrink: 0;
}

/* ---------------- Recursos ---------------- */

.features-section {
  padding: 72px 0;
  background: var(--surface);
  border-bottom: var(--bwl) solid var(--ink-950);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--white);
  border: var(--bw) solid var(--ink-950);
  border-radius: 0;
  box-shadow: var(--shadow-card);
  padding: 26px 24px;
  transition:
    transform 0.15s var(--ease),
    box-shadow 0.15s var(--ease);
}
.feature-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0 0 #000;
}

.feature-icon {
  font-size: 1.5rem;
  margin-bottom: 14px;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  background: var(--orange-500);
  border: var(--bw) solid var(--ink-950);
}
.feature-card h3 {
  font-size: 1.08rem;
  margin-bottom: 8px;
}
.feature-card p {
  font-size: 0.92rem;
  margin: 0;
}

/* ---------------- Calculadora de economia ---------------- */

.calc-section {
  padding: 76px 0;
  background: var(--yellow);
  border-bottom: var(--bwl) solid var(--ink-950);
}

.calc-grid {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: 56px;
  align-items: center;
}
.calc-copy p {
  color: #241800;
  font-weight: 500;
}

.calc-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--ink-950);
  margin: 28px 0 14px;
}
.calc-label strong {
  color: var(--ink-950);
  font-family: var(--font-display);
  font-size: 1.3rem;
  background: var(--white);
  border: 2px solid var(--ink-950);
  padding: 1px 10px;
}

input[type="range"] {
  width: 100%;
  height: 18px;
  border-radius: 0;
  background: var(--white);
  border: var(--bw) solid var(--ink-950);
  appearance: none;
  outline: none;
  padding: 0;
}
input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 26px;
  height: 26px;
  border-radius: 0;
  background: var(--orange-500);
  cursor: pointer;
  border: var(--bw) solid var(--ink-950);
  box-shadow: 3px 3px 0 0 #000;
  margin-top: 0;
}
input[type="range"]::-moz-range-thumb {
  width: 26px;
  height: 26px;
  border-radius: 0;
  border: var(--bw) solid var(--ink-950);
  background: var(--orange-500);
  cursor: pointer;
  box-shadow: 3px 3px 0 0 #000;
}

.calc-result {
  background: var(--ink-950);
  border: var(--bwl) solid var(--ink-950);
  border-radius: 0;
  box-shadow: var(--shadow-lg);
  padding: 30px;
}

.calc-result-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 10px 0;
}
.calc-result-label {
  font-size: 0.86rem;
  color: #c9c5bf;
  font-family: var(--font-mono);
}
.calc-result-value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
}
.calc-result-before {
  color: var(--pink);
}
.calc-result-after {
  color: var(--orange-300);
}

.calc-result-divider {
  height: 3px;
  background: var(--mist-50);
  margin: 14px 0;
}

.calc-result-highlight {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 6px;
}
.calc-result-highlight span {
  font-size: 0.82rem;
  color: #c9c5bf;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.calc-result-highlight strong {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--orange-500);
  letter-spacing: -0.03em;
}

/* ---------------- Stats textuais (Sobre) ---------------- */

.stat-number-text {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--ink-950);
  display: block;
  margin-bottom: 6px;
  background: var(--orange-500);
  border: 2px solid var(--ink-950);
  padding: 6px 10px;
}

/* ---------------- FAQ ---------------- */

.faq-section {
  padding: 72px 0 80px;
  background: var(--surface);
  border-bottom: var(--bwl) solid var(--ink-950);
}

.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: grid;
  gap: 14px;
}

.faq-item {
  background: var(--white);
  border: var(--bw) solid var(--ink-950);
  box-shadow: var(--shadow-sm);
  padding: 0;
}

.faq-item summary {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.02rem;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding: 16px 56px 16px 18px;
  color: var(--ink-950);
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 700;
  background: var(--orange-500);
  color: var(--ink-950);
  border: 2px solid var(--ink-950);
  transition: none;
}
.faq-item[open] summary::after {
  content: "\2212";
  transform: translateY(-50%);
}

.faq-item p {
  margin: 0;
  padding: 0 18px 18px;
  font-size: 0.92rem;
  color: var(--ink-muted);
}

/* ---------------- Sobre ---------------- */

.about-section {
  padding: 76px 0;
  background: var(--white);
  border-bottom: var(--bwl) solid var(--ink-950);
}
.card-about {
  max-width: 820px;
  background: var(--mist-50);
  border: var(--bwl) solid var(--ink-950);
  box-shadow: var(--shadow-lg);
  padding: 34px;
}
.card-about h2 {
  font-size: 2rem;
}
.card-about p {
  font-size: 1.02rem;
}

.about-stats {
  display: flex;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap;
}
.stat-item {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 200px;
  background: var(--white);
  border: var(--bw) solid var(--ink-950);
  box-shadow: var(--shadow-sm);
  padding: 16px;
}
.stat-number {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--ink-950);
}
.stat-label {
  font-size: 0.84rem;
  color: var(--ink-muted);
  font-family: var(--font-mono);
}

/* ---------------- Confiança / Segurança ---------------- */

.trust-section {
  padding: 76px 0;
  background: var(--ink-950);
  border-bottom: var(--bwl) solid var(--ink-950);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.trust-item {
  background: var(--mist-50);
  border: var(--bw) solid var(--mist-50);
  border-radius: 0;
  box-shadow: 6px 6px 0 0 var(--orange-500);
  padding: 26px 24px;
  transition:
    transform 0.15s var(--ease),
    box-shadow 0.15s var(--ease);
}
.trust-item:hover {
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0 0 var(--orange-500);
}

.trust-icon {
  font-size: 1.4rem;
  margin-bottom: 12px;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  background: var(--yellow);
  border: var(--bw) solid var(--ink-950);
}
.trust-item h3 {
  color: var(--ink-950);
  font-size: 1.02rem;
  margin-bottom: 8px;
}
.trust-item p {
  color: var(--ink-muted);
  font-size: 0.88rem;
  margin: 0;
}

/* ---------------- Depoimento ---------------- */

.testimonial-section {
  padding: 72px 0;
  background: var(--pink);
  border-bottom: var(--bwl) solid var(--ink-950);
}

.testimonial {
  max-width: 720px;
  margin: 0 auto;
  text-align: left;
  background: var(--white);
  border: var(--bwl) solid var(--ink-950);
  box-shadow: var(--shadow-lg);
  padding: 32px;
}
.testimonial p {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--ink-950);
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}
.testimonial footer {
  font-size: 0.86rem;
  color: var(--ink-muted);
  font-family: var(--font-mono);
  background-color: var(--yellow);
  font-weight: 800;
}

/* ---------------- CTA final ---------------- */

.cta-section {
  background: var(--orange-500);
  padding: 68px 0;
  text-align: center;
  border-bottom: var(--bwl) solid var(--ink-950);
}
.cta-section h2,
.cta-section p {
  color: var(--ink-950);
}
.cta-section h2 {
  font-size: 2.2rem;
}
.cta-section p {
  color: #241800;
  font-weight: 500;
}

/* ---------------- Cards genéricos (login) ---------------- */

.card {
  background: var(--white);
  border: var(--bwl) solid var(--ink-950);
  border-radius: 0;
  box-shadow: var(--shadow-lg);
  padding: 34px;
  max-width: 440px;
  margin: 64px auto;
}

.form-header h2 {
  font-size: 1.5rem;
}
.form-header p {
  font-size: 0.92rem;
}

.field {
  margin-bottom: 18px;
}
.field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 6px;
  color: var(--ink-950);
}

.input-wrapper {
  display: flex;
  align-items: center;
  border: var(--bw) solid var(--ink-950);
  border-radius: 0;
  box-shadow: var(--shadow-sm);
  padding: 0 12px;
  background: var(--mist-50);
  transition:
    transform 0.15s var(--ease),
    box-shadow 0.15s var(--ease);
}
.input-wrapper:focus-within {
  transform: translate(-1px, -1px);
  box-shadow: 5px 5px 0 0 #000;
}

.input-wrapper input {
  border: none;
  background: transparent;
  padding: 12px 8px;
  font-size: 0.98rem;
  font-weight: 500;
  width: 100%;
  outline: none;
  font-family: var(--font-body);
  color: var(--ink-950);
}

.icon-left {
  opacity: 1;
  filter: grayscale(1);
}

.btn-submit {
  width: 100%;
  background: var(--orange-500);
  color: var(--ink-950);
  border: var(--bw) solid var(--ink-950);
  border-radius: 0;
  padding: 13px;
  box-shadow: var(--shadow-card);
  font-weight: 800;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition:
    transform 0.1s var(--ease),
    background 0.1s var(--ease),
    box-shadow 0.1s var(--ease);
}
.btn-submit:hover {
  background: var(--orange-300);
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0 0 #000;
}
.btn-submit:active {
  transform: translate(3px, 3px);
  box-shadow: none;
}

.login-footer {
  text-align: center;
  margin-top: 18px;
}
.btn-text {
  background: none;
  border: none;
  color: var(--ink-950);
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.alert {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 11px 14px;
  border: var(--bw) solid var(--ink-950);
  border-radius: 0;
  box-shadow: var(--shadow-sm);
  font-size: 0.85rem;
  font-weight: 600;
  margin: 14px 0;
}
.alert.show {
  display: flex;
}
.alert-error {
  background: var(--pink);
  color: var(--ink-950);
}
.alert-info {
  background: var(--yellow);
  color: var(--ink-950);
}

.spinner {
  display: none;
  width: 14px;
  height: 14px;
  border: 3px solid rgba(0, 0, 0, 0.25);
  border-top-color: #000;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
.spinner.show {
  display: inline-block;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ==========================================================================
   APP SHELL
   ========================================================================== */

#app-shell {
  display: flex;
  min-height: 100vh;
}

.app-sidebar {
  width: var(--sidebar-width);
  background: var(--ink-950);
  color: var(--white);
  padding: 22px 16px;
  display: flex;
  flex-direction: column;
  gap: 30px;
  position: sticky;
  top: 0;
  height: 100vh;
  border-right: var(--bwl) solid var(--ink-950);
}

.app-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  background: var(--white);
  border: var(--bw) solid var(--white);
}
.app-logo .logo-icon {
  width: 28px;
  height: 28px;
}
.app-logo span {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--ink-950);
}

.app-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.app-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--ink-800);
  border: var(--bw) solid var(--ink-800);
  color: #ffffff;
  padding: 11px 12px;
  border-radius: 0;
  font-size: 0.94rem;
  font-weight: 700;
  text-align: left;
  transition:
    transform 0.1s var(--ease),
    background 0.1s var(--ease),
    box-shadow 0.1s var(--ease);
}
.app-nav-item:hover {
  background: #2c2c2c;
  border-color: #2c2c2c;
  color: var(--white);
}
.app-nav-item.active {
  background: var(--orange-500);
  color: var(--ink-950);
  font-weight: 800;
  border-color: var(--mist-50);
  box-shadow: 3px 3px 0 0 var(--mist-50);
}

.nav-icon {
  font-size: 1rem;
}

.app-nav-logout {
  display: flex;
  align-items: center;
  gap: 10px;
  background: none;
  border: var(--bw) solid var(--mist-50);
  color: var(--mist-50);
  padding: 10px 12px;
  border-radius: 0;
  font-size: 0.9rem;
  font-weight: 700;
  transition:
    background 0.15s var(--ease),
    color 0.15s var(--ease);
}
.app-nav-logout:hover {
  background: var(--mist-50);
  color: var(--ink-950);
}

.app-main {
  flex: 1;
  padding: 40px 48px;
  max-width: 900px;
}

.panel-header {
  margin-bottom: 26px;
}
.panel-header h1 {
  font-size: 1.8rem;
  margin-bottom: 6px;
  font-weight: 800;
}
.panel-header p {
  font-size: 0.96rem;
  margin: 0;
}
.panel-header-flex {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.app-panel {
  background: var(--white);
  border: var(--bwl) solid var(--ink-950);
  border-radius: 0;
  padding: 30px;
  box-shadow: var(--shadow-lg);
  animation: panel-in 0.35s var(--ease);
}
@keyframes panel-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Abas de pasta --- */

.folder-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.folder-tab {
  background: var(--mist-50);
  border: var(--bw) solid var(--ink-950);
  color: var(--ink-950);
  padding: 10px 18px;
  font-size: 0.92rem;
  font-weight: 700;
  border-radius: 0;
  box-shadow: var(--shadow-sm);
  position: relative;
  top: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  transition:
    transform 0.1s var(--ease),
    background 0.1s var(--ease),
    box-shadow 0.1s var(--ease);
}
.folder-tab:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 0 #000;
}
.folder-tab.active {
  background: var(--orange-500);
  color: var(--ink-950);
  font-weight: 800;
  box-shadow: 5px 5px 0 0 #000;
}

.folder-tab-panel {
  background: var(--surface);
  border: var(--bw) solid var(--ink-950);
  border-radius: 0;
  box-shadow: var(--shadow-sm);
  padding: 16px 20px;
  margin: 16px 0 24px;
}
.folder-tab-panel p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink-muted);
  font-weight: 500;
}

/* --- Dropzone --- */

.dropzone {
  border: var(--bwl) dashed var(--ink-950);
  border-radius: 0;
  background: var(--mist-50);
  padding: 40px 24px;
  text-align: center;
  cursor: pointer;
  position: relative;
  transition:
    background 0.15s var(--ease),
    transform 0.15s var(--ease);
}
.dropzone:hover,
.dropzone.dragover {
  background: var(--yellow);
  transform: translate(-2px, -2px);
}
.dropzone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.dropzone-icon {
  font-size: 1.9rem;
  margin-bottom: 8px;
}
.dropzone h3 {
  font-size: 1.05rem;
  margin-bottom: 4px;
}
.dropzone p {
  font-size: 0.86rem;
  margin: 0;
}

.file-preview {
  display: none;
  align-items: center;
  gap: 12px;
  background: var(--white);
  border: var(--bw) solid var(--ink-950);
  border-radius: 0;
  box-shadow: var(--shadow-sm);
  padding: 12px 16px;
  margin-top: 18px;
}
.file-preview.show {
  display: flex;
}
.file-icon {
  font-size: 1.4rem;
}
.file-info {
  flex: 1;
}
.file-name {
  font-weight: 800;
  font-size: 0.92rem;
}
.file-size {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-muted);
}
.file-remove {
  background: var(--pink);
  border: 2px solid var(--ink-950);
  color: var(--ink-950);
  font-size: 0.9rem;
  font-weight: 700;
  padding: 4px 10px;
  line-height: 1;
}
.file-remove:active {
  transform: translate(2px, 2px);
}

.card-actions {
  margin-top: 20px;
}
.card-actions .btn-submit {
  width: auto;
  padding: 12px 26px;
}

/* --- Tabela de processamentos --- */

.btn-refresh {
  background: var(--white);
  border: var(--bw) solid var(--ink-950);
  color: var(--ink-950);
  padding: 9px 16px;
  border-radius: 0;
  font-size: 0.86rem;
  font-weight: 800;
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
  transition:
    transform 0.1s var(--ease),
    box-shadow 0.1s var(--ease);
}
.btn-refresh:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 0 #000;
}
.btn-refresh:active {
  transform: translate(3px, 3px);
  box-shadow: none;
}

.table-container {
  overflow-x: auto;
  border: var(--bw) solid var(--ink-950);
}
#jobs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.91rem;
}
#jobs-table th {
  text-align: left;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-950);
  background: var(--surface);
  font-weight: 700;
  padding: 12px 14px;
  border-bottom: var(--bw) solid var(--ink-950);
}
#jobs-table td {
  padding: 12px 14px;
  border-bottom: 2px solid var(--ink-950);
  font-weight: 500;
}
#jobs-table tbody tr:last-child td {
  border-bottom: none;
}
#jobs-table tbody tr {
  transition: background 0.15s ease;
}
#jobs-table tbody tr:hover {
  background: var(--yellow);
}
#jobs-table td:first-child,
#jobs-table td:nth-child(3) {
  font-family: var(--font-mono);
  font-size: 0.86rem;
}

.empty-row td {
  text-align: center;
  padding: 40px 20px;
  color: var(--ink-muted);
  font-size: 0.9rem;
}

.stamp {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  padding: 4px 10px;
  border: 2px solid var(--ink-950);
  border-radius: 0;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.stamp::before {
  content: "";
  width: 8px;
  height: 8px;
  border: 1.5px solid var(--ink-950);
  border-radius: 0;
}
.stamp-pending {
  background: var(--mist-50);
  color: var(--ink-950);
}
.stamp-pending::before {
  background: var(--mist-50);
}
.stamp-processing {
  background: var(--yellow);
  color: var(--ink-950);
}
.stamp-processing::before {
  background: var(--orange-500);
  animation: pulse 1.2s ease-in-out infinite;
}
.stamp-done {
  background: var(--teal-500);
  color: var(--white);
}
.stamp-done::before {
  background: var(--white);
  border-color: var(--white);
}
.stamp-failed {
  background: var(--pink);
  color: var(--ink-950);
}
.stamp-failed::before {
  background: var(--rust-500);
}
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}

.btn-download {
  background: var(--teal-500);
  color: var(--white);
  border: 2px solid var(--ink-950);
  padding: 7px 14px;
  border-radius: 0;
  font-size: 0.83rem;
  font-weight: 800;
  box-shadow: 3px 3px 0 0 #000;
  transition:
    transform 0.1s var(--ease),
    box-shadow 0.1s var(--ease);
}
.btn-download:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 0 #000;
}
.btn-download:active {
  transform: translate(3px, 3px);
  box-shadow: none;
}

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

footer {
  background: var(--ink-950);
  padding: 24px 0;
  border-top: var(--bwl) solid var(--ink-950);
}
.footer-container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}
.footer-container p {
  color: var(--mist-50);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  margin: 0;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ---------------- Responsivo ---------------- */

@media (max-width: 860px) {
  .header-inner {
    position: relative;
  }
  .mobile-menu-toggle {
    display: flex;
  }

  nav {
    display: none;
    position: absolute;
    top: calc(100% + 14px);
    left: 0;
    right: 0;
    background: var(--ink-950);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 24px 20px;
    border-top: var(--bw) solid #333;
    box-shadow: 0 12px 0 0 rgba(0, 0, 0, 0.25);
  }
  nav.mobile-open {
    display: flex;
  }
  nav a {
    padding: 13px 0;
    border-bottom: 2px solid #333;
  }
  nav a::after {
    display: none;
  }
  nav a.active {
    border: var(--bw) solid var(--ink-950);
    padding: 13px 12px;
  }
  .btn-nav-accent {
    text-align: center;
    margin-top: 14px;
    border-bottom: var(--bw) solid var(--ink-950) !important;
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-visual {
    margin-top: 40px;
  }
  .features-grid,
  .trust-grid {
    grid-template-columns: 1fr;
  }
  .steps-row {
    flex-direction: column;
    gap: 28px;
    align-items: stretch;
  }
  .step-connector {
    display: none;
  }
  .calc-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  #app-shell {
    flex-direction: column;
  }
  .app-sidebar {
    width: 100%;
    height: auto;
    position: static;
    flex-direction: row;
    align-items: center;
    padding: 12px 16px;
    gap: 16px;
    border-right: none;
    border-bottom: var(--bwl) solid var(--ink-950);
  }
  .app-nav {
    flex-direction: row;
    flex: 1;
    overflow-x: auto;
  }
  .app-nav-item {
    white-space: nowrap;
  }
  .app-nav-logout {
    white-space: nowrap;
  }
  .app-main {
    padding: 24px 16px;
  }
  .app-panel {
    padding: 20px;
  }
  .folder-tab span:not(.tab-icon) {
    display: none;
  }
  .folder-tab {
    padding: 10px 14px;
  }
  .sticky-cta {
    right: 16px;
    bottom: 16px;
  }
}

@media (max-width: 480px) {
  .hero-copy h1 {
    font-size: 2.2rem;
  }
  .card {
    margin: 32px 16px;
    padding: 24px;
  }
  .demo-card {
    width: 170px;
  }
}

.logo{display:inline-flex;align-items:center;gap:14px;cursor:pointer;color:#111}
.logo-icon{width:56px;height:56px;flex:none;overflow:visible}
.logo-text{display:flex;align-items:center;gap:6px;font-family:'Archivo Black',sans-serif;font-size:32px;line-height:.9;text-transform:uppercase;color: var(--mist-50)}
.logo{display:inline-flex !important;align-items:center;justify-content:flex-start !important;gap:12px !important;width:auto !important}
.logo-text{margin:0 !important}
.logo-ai{background:#FF7A1A;border:3px solid #111;padding:3px 6px 1px}
.hand{transform-box:view-box;transform-origin:48px 48px}
.hand-min{animation:hand-min 3s linear infinite}
.hand-hr{animation:hand-hr 36s linear infinite}
@keyframes hand-min{from{transform:rotate(0)}to{transform:rotate(360deg)}}
@keyframes hand-hr{from{transform:rotate(-60deg)}to{transform:rotate(300deg)}}
.logo--1b{flex-direction:column;gap:10px}
.logo--1b .logo-text{align-items:flex-end;gap:4px;font-size:40px;line-height:.8}
.logo--1b .logo-icon{width:30px;height:30px}
.logo-tagline{font:800 10px 'Archivo',sans-serif;letter-spacing:.3em;text-transform:uppercase}
.logo--dark{background:#111;padding:20px 26px;border:3px solid #111;box-shadow:8px 8px 0 #FF7A1A}
.logo--dark .logo-text{color:#FFF1E0}
.logo--dark .logo-ai{color:#111;border-color:#FFF1E0}
.logo-app{width:96px;height:96px}