/* Identidade visual AIKOS Assessoria (mesma paleta e tipografia de aikosassessoria.com.br) */
:root {
  --ink: #0e0e0f;
  --ink-2: #151516;
  --ink-3: #1d1d1f;
  --paper: #f4f1ec;
  --paper-2: #ebe6df;
  --white: #ffffff;
  --on-ink: #f5f3f0;
  --on-ink-muted: #a29e98;
  --on-paper: #121212;
  --muted: #5b5751;
  --flame-deep: #b3261e;
  --flame: #e8502a;
  --flame-light: #f06f3c;
  --amber: #f09b1e;
  --btn: #d4421e;
  --btn-hover: #bf3717;
  --accent: #b83a1a;
  --flame-gradient: linear-gradient(115deg, var(--flame-deep) 0%, var(--flame) 45%, var(--amber) 100%);
  --line: rgba(18, 18, 18, 0.12);
  --ok: #157a3e; --ok-bg: #e9f6ee;
  --bad: #b3261e; --bad-bg: #fdecea;
  --warn: #9a5b06; --warn-bg: #fdf3e2;
  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Manrope", "Segoe UI", system-ui, sans-serif;
  --radius: 14px;
  --radius-sm: 10px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow: 0 1px 2px rgba(14, 14, 15, .05), 0 18px 40px -24px rgba(14, 14, 15, .35);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh;
  font-family: var(--font-body); font-size: 1rem; line-height: 1.6;
  color: var(--on-paper); background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); }
img { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; font-stretch: 106%; letter-spacing: -0.02em; line-height: 1.1; margin: 0 0 .6rem; text-wrap: balance; }
h1 { font-size: clamp(1.6rem, 4.5vw, 2.1rem); }
h2 { font-size: 1.3rem; }
p { margin: 0 0 .8rem; text-wrap: pretty; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
:focus-visible { outline: 2px solid var(--flame-light); outline-offset: 3px; border-radius: 4px; }

/* ---------- Cabeçalho escuro com a logo ---------- */
.topbar { background: var(--ink); color: var(--on-ink); position: relative; }
.topbar::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--flame-gradient); }
.topbar-inner { display: flex; align-items: center; gap: 1rem; padding: 18px clamp(16px, 4vw, 40px); max-width: 1180px; margin: 0 auto; }
.brand-logo { height: 30px; width: auto; }
.topbar .tag { font-family: var(--font-display); font-stretch: 112%; font-size: .7rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--on-ink-muted); border-left: 1px solid rgba(255,255,255,.18); padding-left: 1rem; }
.spacer { flex: 1; }

/* Faixa escura de abertura (página do cliente) */
.hero { background: var(--ink); color: var(--on-ink); padding: 34px clamp(16px, 4vw, 40px) 92px; }
.hero-inner { max-width: 560px; margin: 0 auto; }
.eyebrow { font-family: var(--font-display); font-stretch: 112%; font-size: .72rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--on-ink-muted); display: inline-flex; align-items: center; gap: .7em; margin-bottom: .9rem; }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--flame-gradient); }
.hero h1 { color: var(--white); font-size: clamp(1.7rem, 5vw, 2.4rem); margin: 0; }
.accent-text { background: var(--flame-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }

.wrap { max-width: 560px; margin: 0 auto; padding: 0 16px 3rem; }
.wrap.overlap { margin-top: -64px; }
.wrap.wide { max-width: 1180px; padding-top: 28px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(1.25rem, 4vw, 1.75rem); margin-bottom: 1rem; }

/* ---------- Botões (pílula, cor da marca) ---------- */
.btn {
  appearance: none; border: 0; border-radius: 999px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: 12px 24px;
  font-family: var(--font-body); font-weight: 700; font-size: .96rem; line-height: 1.2;
  background: var(--btn); color: #fff; box-shadow: 0 10px 30px -14px rgba(232, 80, 42, .7);
  transition: background-color .3s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease);
}
.btn:hover { background: var(--btn-hover); }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
.btn.secondary { background: var(--paper); color: var(--on-paper); box-shadow: none; border: 1px solid var(--line); }
.btn.secondary:hover { background: var(--paper-2); }
.btn.dark { background: var(--ink); box-shadow: none; }
.btn.dark:hover { background: var(--ink-3); }
.btn.danger { background: var(--bad-bg); color: var(--bad); box-shadow: none; }
.btn.block { width: 100%; }
.btn.sm { min-height: 34px; padding: 6px 14px; font-size: .82rem; }
.topbar .btn.secondary { background: transparent; color: var(--on-ink); border-color: rgba(255,255,255,.25); }
.topbar .btn.secondary:hover { border-color: rgba(255,255,255,.55); }

/* ---------- Formulários ---------- */
label { display: block; font-weight: 700; font-size: .92rem; margin-bottom: .4rem; }
input[type=text], input[type=tel], input[type=password], select {
  width: 100%; min-height: 48px; padding: .7rem .95rem;
  border: 1px solid rgba(18,18,18,.2); border-radius: var(--radius-sm);
  font: inherit; color: var(--on-paper); background: #fff;
}
input:focus, select:focus { outline: none; border-color: var(--flame); box-shadow: 0 0 0 3px rgba(232, 80, 42, .18); }
.field { margin-bottom: 1rem; }
.check { display: flex; gap: .75rem; align-items: flex-start; font-weight: 500; font-size: .94rem; cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 3px; flex: none; accent-color: var(--btn); }

/* ---------- Status ---------- */
.pill { display: inline-flex; align-items: center; gap: .4rem; padding: .28rem .7rem; border-radius: 999px; font-size: .78rem; font-weight: 700; white-space: nowrap; }
.pill.ok { background: var(--ok-bg); color: var(--ok); }
.pill.bad { background: var(--bad-bg); color: var(--bad); }
.pill.wait { background: var(--warn-bg); color: var(--warn); }
.pill.idle { background: var(--paper); color: var(--muted); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }

/* ---------- Abas ---------- */
.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: .35rem; background: var(--paper); padding: .3rem; border-radius: 999px; margin-bottom: 1.25rem; border: 1px solid var(--line); }
.tab { border: 0; background: transparent; padding: .6rem .5rem; border-radius: 999px; font: inherit; font-weight: 700; font-size: .9rem; color: var(--muted); cursor: pointer; min-height: 44px; }
.tab[aria-selected=true] { background: var(--ink); color: #fff; }

.qrbox { display: grid; place-items: center; background: #fff; border: 1px dashed rgba(18,18,18,.22); border-radius: var(--radius); min-height: 290px; padding: 1rem; }
.qrbox img { width: 264px; height: 264px; image-rendering: pixelated; }
.code { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: clamp(1.6rem, 7vw, 2.1rem); font-weight: 700; letter-spacing: .22rem; text-align: center; padding: 1rem; background: var(--ink); color: #fff; border-radius: var(--radius); position: relative; overflow: hidden; }
.code::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--flame-gradient); }
.steps { padding-left: 1.25rem; margin: 0 0 1rem; }
.steps li { margin-bottom: .5rem; line-height: 1.55; }
.steps li::marker { color: var(--flame); font-weight: 700; }
.notice { padding: .8rem 1rem; border-radius: var(--radius-sm); font-size: .92rem; margin-bottom: 1rem; }
.notice.bad { background: var(--bad-bg); color: var(--bad); }
.notice.ok { background: var(--ok-bg); color: var(--ok); }
.notice.warn { background: var(--warn-bg); color: var(--warn); }
.progress { height: 8px; background: rgba(154, 91, 6, .15); border-radius: 999px; overflow: hidden; margin-top: .55rem; }
.progress > div { height: 100%; width: 0; background: var(--flame-gradient); border-radius: 999px; transition: width .3s linear; }
.center { text-align: center; }
.big-icon { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 1rem; font-size: 1.9rem; background: var(--ok-bg); }
.big-icon.warn { background: var(--warn-bg); }
.footer { text-align: center; font-size: .82rem; color: var(--muted); padding: 0 16px 2rem; }
.hidden { display: none !important; }

/* ---------- Painel ---------- */
.grid { display: grid; gap: 1rem; }
@media (min-width: 900px) { .grid.two { grid-template-columns: 1.6fr 1fr; align-items: start; } }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: .8rem .5rem; border-bottom: 1px solid var(--line); vertical-align: top; font-size: .92rem; }
td:last-child { white-space: nowrap; }
th { font-family: var(--font-display); font-stretch: 112%; font-size: .7rem; text-transform: uppercase; letter-spacing: .16em; color: var(--muted); font-weight: 600; }
td .actions { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .5rem; }
.row { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }
.toast { position: fixed; bottom: 1rem; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; padding: .75rem 1.1rem; border-radius: 999px; font-size: .9rem; font-weight: 600; z-index: 10; box-shadow: var(--shadow); }
@media (max-width: 700px) {
  thead { display: none; }
  table, tbody, tr, td { display: block; width: 100%; }
  tr { border-bottom: 1px solid var(--line); padding: .6rem 0; }
  td { border: 0; padding: .25rem 0; }
  .topbar .tag { display: none; }
}
