/* TirzeLife — tokens espelhados de app-tirzelife/lib/core/theme/
   Qualquer mudanca de cor no app deve ser refletida aqui. */

:root {
  --canvas: #0c0a0d;
  --surface: #151316;
  --surface-lowest: #100d10;
  --surface-low: #1d1b1e;
  --surface-container: #211f22;
  --surface-high: #2c292c;
  --surface-highest: #373437;

  --on-surface: #e7e1e5;
  --on-surface-var: #e4bdc2;
  --outline: #ab888c;

  --primary: #ffb2be;
  --primary-container: #ff4e7c;
  --secondary: #f5b9a2;
  --secondary-dim: #f5b9a2;
  --tertiary: #f9abff;
  --success: #66bb6a;
  --warning: #ffb74d;
  --error: #ffb4ab;

  --hairline: rgba(212, 155, 133, 0.15);
  --hairline-strong: rgba(212, 155, 133, 0.25);

  --cta: linear-gradient(90deg, #ff4d8d 0%, #c2185b 100%);
  --bloom: radial-gradient(120% 70% at 50% -10%, #200e19 0%, var(--canvas) 60%);

  --r-chip: 12px;
  --r-card: 16px;
  --r-panel: 24px;
  --r-pill: 9999px;

  --gutter: 16px;
  --max: 1080px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--canvas);
  color: var(--on-surface);
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
}

body { background-image: var(--bloom); background-repeat: no-repeat; background-attachment: fixed; }

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- tipografia ---------- */
h1, h2, h3 { line-height: 1.15; margin: 0 0 12px; font-weight: 800; letter-spacing: -0.02em; }
h1 { font-size: clamp(2rem, 6vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.2rem); }
h3 { font-size: 1.15rem; font-weight: 700; }
p  { line-height: 1.65; color: var(--on-surface-var); margin: 0 0 16px; }

.overline {
  font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--secondary); font-weight: 700; margin-bottom: 10px;
}
.muted { color: var(--outline); font-size: 0.9rem; }
.lead { font-size: 1.08rem; }

/* ---------- componentes ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px; border-radius: var(--r-pill);
  background: var(--surface-high); border: 1px solid var(--hairline);
  font-size: 0.85rem; font-weight: 600; color: var(--on-surface);
}

.card {
  background: var(--surface-container); border: 1px solid var(--hairline);
  border-radius: var(--r-card); padding: 24px;
}
.card-hero {
  background: linear-gradient(135deg, rgba(255, 78, 124, 0.2) 0%, var(--surface-container) 55%, var(--surface-low) 100%);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--r-panel); padding: 28px;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 28px; border-radius: var(--r-pill); border: 0;
  font-family: inherit; font-size: 1rem; font-weight: 700; cursor: pointer;
  background: var(--cta); color: #fff;
  box-shadow: 0 8px 28px rgba(255, 77, 141, 0.32);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 12px 34px rgba(255, 77, 141, 0.42); text-decoration: none; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn-ghost {
  background: rgba(29, 27, 30, 0.6); color: var(--secondary);
  border: 1.4px solid #d49b85; box-shadow: none;
}
.btn-ghost:hover { box-shadow: none; }
.btn-sm { padding: 9px 16px; font-size: 0.85rem; }

input, select, textarea {
  width: 100%; padding: 14px 16px; font-family: inherit; font-size: 1rem;
  color: var(--on-surface); background: var(--surface-low);
  border: 1px solid var(--hairline); border-radius: var(--r-card); outline: none;
}
input:focus, select:focus, textarea:focus { border-color: var(--primary-container); }
label { display: block; font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--secondary); font-weight: 700; margin: 0 0 6px; }
.field { margin-bottom: 16px; }

.badge {
  display: inline-block; padding: 4px 12px; border-radius: var(--r-pill);
  font-size: 0.75rem; font-weight: 700;
}
.badge-on  { background: rgba(102, 187, 106, 0.16); color: var(--success); }
.badge-off { background: var(--surface-high); color: var(--outline); }
.badge-wait{ background: rgba(255, 183, 77, 0.16); color: var(--warning); }
.badge-err { background: rgba(255, 180, 171, 0.16); color: var(--error); }

.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }

hr { border: 0; border-top: 1px solid var(--hairline); margin: 32px 0; }

/* ---------- paginas de texto (termos, politica, exclusao) ---------- */
.doc { padding: 56px 0 80px; }
.doc h2 { margin-top: 40px; font-size: 1.35rem; }
.doc h3 { margin-top: 26px; color: var(--secondary); }
.doc ul { color: var(--on-surface-var); line-height: 1.75; padding-left: 20px; }
.doc li { margin-bottom: 8px; }
.doc .card { margin: 28px 0; }

/* ---------- topo ---------- */
.topbar {
  position: sticky; top: 0; z-index: 30;
  background: rgba(22, 18, 24, 0.82); backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--hairline-strong);
}
.topbar .wrap { display: flex; align-items: center; gap: 12px; height: 68px; }
.topbar img { height: 34px; }
.topbar .name { font-weight: 800; letter-spacing: -0.01em; }
.topbar nav { margin-left: auto; display: flex; gap: 20px; align-items: center; }
.topbar nav a { color: var(--on-surface-var); font-size: 0.92rem; font-weight: 600; }

/* ---------- rodape ---------- */
footer { border-top: 1px solid var(--hairline); padding: 36px 0 60px; margin-top: 60px; }
footer .links { display: flex; flex-wrap: wrap; gap: 18px; margin-bottom: 16px; }
footer .links a { color: var(--on-surface-var); font-size: 0.9rem; }

@media (max-width: 640px) {
  .topbar nav { gap: 12px; }
  .topbar nav a { font-size: 0.82rem; }
  .card, .card-hero { padding: 20px; }
}
