/* ============================================================
   CORTADOR — identidade "Mesa de Corte"
   grafite quente · verde-limão marca-texto · vermelho REC
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,500;12..96,700;12..96,800&family=Geist:wght@400;500;600&family=Geist+Mono:wght@400;500&display=swap');

:root {
  --ink: #0c0c0d;          /* fundo */
  --ink-2: #131315;        /* painéis */
  --ink-3: #1b1b1e;        /* campos / cartões internos */
  --line: #2a2a2f;
  --line-2: #3a3a41;
  --paper: #f3f1ea;        /* texto principal (branco quente) */
  --muted: #8f8c84;
  --dim: #5c5a55;
  --lime: #c8ff3c;         /* destaque: marca-texto */
  --lime-ink: #101400;     /* texto sobre o limão */
  --rec: #ff4b2b;          /* vermelho REC / corte */
  --ok: #3ee08f;
  --warn: #ffb547;

  --f-display: 'Bricolage Grotesque', 'Segoe UI', system-ui, sans-serif;
  --f-body: 'Geist', 'Segoe UI', system-ui, sans-serif;
  --f-mono: 'Geist Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;

  --r: 14px;
  --r-lg: 22px;
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, .7);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--ink); color: var(--paper);
  font: 15px/1.55 var(--f-body); -webkit-font-smoothing: antialiased;
}
::selection { background: var(--lime); color: var(--lime-ink); }
a { color: var(--paper); }
.mono { font-family: var(--f-mono); letter-spacing: -.01em; }
.hidden { display: none !important; }

/* grão de filme sutil */
.grain::after {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 100; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--paper); font: 800 20px/1 var(--f-display); letter-spacing: -.03em; }
.logo-mark { width: 26px; height: 34px; flex: none; }
.logo b { color: var(--lime); font-weight: 800; }

/* ---------- botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid var(--line-2); background: var(--ink-3); color: var(--paper);
  padding: 10px 16px; border-radius: 999px; cursor: pointer; text-decoration: none;
  font: 500 14px/1 var(--f-body); white-space: nowrap; transition: transform .15s, background .15s, border-color .15s;
}
.btn:hover { border-color: var(--muted); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.primary { background: var(--lime); color: var(--lime-ink); border-color: var(--lime); font-weight: 600; }
.btn.primary:hover { background: #d8ff6e; }
.btn.ghost { background: transparent; }
.btn.big { padding: 16px 26px; font-size: 16px; }
.btn.small { padding: 6px 11px; font-size: 12.5px; }
.btn.danger { color: #ff8a78; }
.btn.icon { width: 40px; height: 40px; padding: 0; }

/* ---------- etiquetas ---------- */
.tag {
  display: inline-flex; align-items: center; gap: 8px; font: 500 12px/1 var(--f-mono);
  text-transform: uppercase; letter-spacing: .08em; color: var(--muted);
}
.rec-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--rec); box-shadow: 0 0 0 4px rgba(255, 75, 43, .18); animation: rec 1.6s infinite; }
@keyframes rec { 50% { opacity: .35; } }

/* linha de corte tracejada com tesoura — assinatura visual */
.cutline { position: relative; height: 1px; border-top: 1.5px dashed var(--line-2); margin: 0; overflow: visible; }
.cutline::before {
  content: '✂'; position: absolute; top: -12px; left: 0; font-size: 16px; color: var(--lime);
  animation: snip 9s linear infinite;
}
@keyframes snip { from { left: -2%; } to { left: 100%; } }

/* marca-texto */
.hl { background: linear-gradient(transparent 12%, var(--lime) 12%, var(--lime) 88%, transparent 88%); color: var(--lime-ink); padding: 0 .12em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }

input, select, textarea {
  background: var(--ink); color: var(--paper); border: 1px solid var(--line); border-radius: 10px;
  padding: 10px 12px; font: 14px var(--f-body); width: 100%; transition: border-color .15s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--lime); }
input[type=range] { padding: 0; accent-color: var(--lime); border: 0; background: transparent; }
input[type=checkbox] { width: auto; accent-color: var(--lime); }
input[type=color] { padding: 3px; height: 38px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
