/* assets/css/global.css */
/* Tema clean (branco) inspirado no layout da referência + patch premium */

:root{
  --bg: #EEF2F7;         /* fundo bem claro */
  --card: #FFFFFF;       /* card branco */
  --text: #1F2937;       /* texto principal */
  --muted: #6B7280;      /* texto secundário */
  --line: #E5E7EB;       /* bordas leves */
  --shadow: 0 12px 28px rgba(17, 24, 39, 0.10);

  --green: #1FA24A;      /* botão/valor (verde clean) */
  --greenDark: #17823B;

  --radius: 18px;

  /* micro-interações */
  --pressY: 1px;
  --pressScale: .99;

  --ring: 0 0 0 3px rgba(59,130,246,.16);
  --ringBorder: rgba(59,130,246,.35);
}

html{
  background: var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body{
  min-height: 100%;
}

/* seleção mais clean */
::selection{
  background: rgba(31, 162, 74, .18);
}

/* base */
.page{
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 22px;
}

.card{
  width: min(560px, 100%);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

/* Cabeçalho clean */
.brand{
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 18px 10px;
}

.brand__logo{
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #F3F4F6;
  border: 1px solid var(--line);
  color: #111827;
  font-weight: 800;
  font-size: 16px;
}

.brand__title{
  font-size: 18px;
  line-height: 1.15;
  letter-spacing: .2px;
}

.brand__subtitle{
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.content{
  padding: 6px 18px 18px;
}

.lead{
  font-size: 14px;
  line-height: 1.55;
  color: var(--text);
}

.lead strong{
  font-weight: 700;
}

.bullets{
  margin-top: 14px;
  display: grid;
  gap: 10px;
}

.bullets li{
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #FAFAFB;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

/* -------------------------------
   Botões (premium clean)
-------------------------------- */
.btn{
  width: 100%;
  margin-top: 16px;
  padding: 13px 14px;
  border-radius: 12px;
  font-weight: 800;
  letter-spacing: .2px;
  user-select: none;
  border: 1px solid transparent;
  cursor: pointer;

  /* sensação app */
  transform: translateY(0) scale(1);
  transition:
    transform .08s ease,
    filter .12s ease,
    box-shadow .14s ease,
    border-color .14s ease;
}

.btn:active{
  transform: translateY(var(--pressY)) scale(var(--pressScale));
}

.btn:focus-visible{
  outline: none;
  box-shadow: var(--ring);
  border-color: var(--ringBorder);
}

.btn[disabled]{
  opacity: .6;
  cursor: not-allowed;
}

/* Principal */
.btn--primary{
  background: var(--green);
  color: #FFFFFF;
  box-shadow: 0 10px 18px rgba(31, 162, 74, .18);
}

.btn--primary:hover{
  filter: brightness(1.03);
  box-shadow: 0 12px 22px rgba(31, 162, 74, .20);
}

.btn--primary:active{
  filter: brightness(.98);
}

/* Secundário (se precisar) */
.btn--ghost{
  background: #FFFFFF;
  color: var(--text);
  border-color: var(--line);
}

.btn--ghost:hover{
  filter: brightness(1.01);
  box-shadow: 0 10px 18px rgba(17,24,39,.06);
}

/* -------------------------------
   Inputs (consistência premium)
-------------------------------- */
input, button{
  font-family: inherit;
}

input:focus-visible{
  outline: none;
  box-shadow: var(--ring);
}

/* texto auxiliar */
.hint{
  margin-top: 12px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.footer{
  padding: 12px 18px 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

/* mobile */
@media (max-width: 420px){
  .brand__title{ font-size: 17px; }
}

/* -------------------------------------------------
   Toast (base) - sensação de app
-------------------------------------------------- */
.toastHost{
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 86px; /* acima da tabbar */
  z-index: 999;
  display: grid;
  gap: 10px;
  pointer-events: none;
  max-width: 560px;
  margin: 0 auto;
}

.toast{
  pointer-events: none;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.96);
  box-shadow: 0 14px 26px rgba(17,24,39,.12);
  padding: 12px 12px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  opacity: 0;
  transform: translateY(10px);
  animation: toastIn .18s ease forwards;
}

.toast__dot{
  width: 10px;
  height: 10px;
  border-radius: 999px;
  margin-top: 4px;
  background: #9CA3AF;
  flex: 0 0 auto;
}

.toast__title{
  font-weight: 900;
  font-size: 13px;
  color: var(--text);
  line-height: 1.2;
}

.toast__msg{
  margin-top: 3px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.35;
}

.toast--ok .toast__dot{ background: var(--green); }
.toast--bad .toast__dot{ background: #B91C1C; }

@keyframes toastIn{
  to{
    opacity: 1;
    transform: translateY(0);
  }
}
