/* ===== Alanio Bezerra · paleta azul-marinho ===== */
:root {
  --navy-950: #050d1f;
  --navy-900: #081633;
  --navy-850: #0b1d42;
  --navy-800: #0f2552;
  --navy-700: #183268;
  --line: rgba(160, 190, 255, 0.14);
  --line-strong: rgba(160, 190, 255, 0.28);
  --text: #eef3ff;
  --muted: #a9b8d8;
  --soft: #7f90b5;
  --gold: #f2c14e;
  --gold-2: #ffd97a;
  --sky: #7fb2ff;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.6);
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--text);
  background: var(--navy-950);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }

.wrap { width: min(1080px, 100% - 40px); margin-inline: auto; }

/* ---------- etiquetas e títulos ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold);
}
h1, h2, h3 { line-height: 1.12; margin: 0; letter-spacing: -0.02em; }
.serif-accent { color: var(--gold); }

/* ---------- botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 22px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: 15px; text-decoration: none; transition: transform .15s, background .15s, border-color .15s;
}
.btn:active { transform: scale(.98); }
.btn-gold { background: var(--gold); color: #1a1300; }
.btn-gold:hover { background: var(--gold-2); }
.btn-ghost { background: transparent; border-color: var(--line-strong); color: var(--text); }
.btn-ghost:hover { border-color: var(--sky); }
.btn-block { width: 100%; }

/* ---------- HERO ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 56px 0 64px;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(127, 178, 255, 0.22), transparent 60%),
    radial-gradient(700px 400px at -10% 110%, rgba(242, 193, 78, 0.10), transparent 60%),
    linear-gradient(180deg, var(--navy-900), var(--navy-950));
  border-bottom: 1px solid var(--line);
}
.hero h1 { font-size: clamp(36px, 7vw, 64px); font-weight: 800; margin-top: 18px; }
.hero h1 .serif-accent { display: block; font-size: 1.04em; }
.hero .lead { color: var(--muted); font-size: clamp(16px, 2.2vw, 18px); max-width: 620px; margin: 20px 0 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.chip {
  font-size: 13px; padding: 6px 12px; border-radius: 999px;
  background: rgba(127, 178, 255, 0.10); border: 1px solid var(--line); color: #cfe0ff;
}
.teaser {
  margin-top: 28px; padding: 18px 20px; border-radius: var(--radius);
  background: rgba(15, 37, 82, 0.7); border: 1px solid var(--line-strong);
  display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap;
  max-width: 760px;
}
.teaser p { margin: 0; color: var(--muted); font-size: 15px; flex: 1 1 320px; }
.teaser strong { color: var(--text); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* ---------- SEÇÕES ---------- */
section { padding: 72px 0; }
.section-head { max-width: 640px; margin-bottom: 32px; }
.section-head h2 { font-size: clamp(28px, 4.5vw, 40px); font-weight: 800; margin-top: 14px; }
.section-head p { color: var(--muted); margin: 14px 0 0; }

/* ---------- BUSCA ---------- */
.search {
  display: flex; align-items: center; gap: 10px;
  background: var(--navy-850); border: 1px solid var(--line-strong);
  border-radius: 999px; padding: 4px 6px 4px 18px; margin-bottom: 26px; max-width: 560px;
}
.search svg { flex: none; opacity: .7; }
.search input {
  flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; color: var(--text);
  font: inherit; font-size: 15px; padding: 10px 0;
}
.search input::placeholder { color: var(--soft); }
.search-count { font-size: 13px; color: var(--soft); padding-right: 12px; white-space: nowrap; }

/* ---------- CATEGORIAS ---------- */
.cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.cat {
  text-align: left; width: 100%;
  background: linear-gradient(180deg, var(--navy-850), var(--navy-900));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 22px;
  display: flex; flex-direction: column; gap: 10px; transition: border-color .15s, transform .15s;
}
.cat:hover { border-color: var(--sky); transform: translateY(-2px); }
.cat-num { font-weight: 800; font-size: 26px; color: var(--gold); line-height: 1; }
.cat h3 { font-size: 19px; font-weight: 700; }
.cat p { margin: 0; color: var(--muted); font-size: 14px; }
.cat-foot { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 8px; font-size: 13px; color: var(--sky); font-weight: 600; }
.cat-foot span:first-child { color: var(--soft); font-weight: 500; }
.cats-actions { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- LISTA DE COMANDOS ---------- */
.results { display: grid; gap: 12px; }
.results[hidden] { display: none; }
.prompt {
  background: var(--navy-850); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 18px 16px;
}
.prompt-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.prompt-id { font-size: 12px; color: var(--gold); font-weight: 700; letter-spacing: .08em; }
.prompt h4 { margin: 4px 0 0; font-size: 16px; }
.prompt-tag { font-size: 12px; color: var(--soft); margin-top: 2px; }
.prompt pre {
  margin: 12px 0 0; white-space: pre-wrap; word-wrap: break-word;
  font-family: var(--sans); font-size: 14px; color: #d6e2fb; line-height: 1.6;
  background: rgba(5, 13, 31, 0.55); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px;
}
.copy {
  flex: none; border: 1px solid var(--line-strong); background: transparent; border-radius: 999px;
  padding: 8px 14px; font-size: 13px; font-weight: 600; display: inline-flex; gap: 6px; align-items: center;
}
.copy:hover { border-color: var(--gold); color: var(--gold); }
.copy.ok { background: var(--gold); color: #1a1300; border-color: var(--gold); }
.empty { color: var(--muted); padding: 24px; text-align: center; border: 1px dashed var(--line-strong); border-radius: var(--radius); }

/* ---------- MODAL ---------- */
.modal { position: fixed; inset: 0; z-index: 50; display: none; }
.modal.open { display: block; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(2, 6, 18, 0.75); backdrop-filter: blur(4px); }
.modal-panel {
  position: absolute; inset: auto 0 0 0; max-height: 92vh; overflow: auto;
  background: var(--navy-900); border-top: 1px solid var(--line-strong);
  border-radius: 22px 22px 0 0; padding: 22px 18px 40px;
}
@media (min-width: 760px) {
  .modal-panel { inset: 5vh auto auto 50%; transform: translateX(-50%); width: min(820px, 92vw); max-height: 90vh; border-radius: 22px; border: 1px solid var(--line-strong); padding: 28px; }
}
.modal-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; margin-bottom: 18px; position: sticky; top: -22px; background: var(--navy-900); padding: 6px 0 12px; z-index: 1; }
.modal-head h3 { font-size: 22px; }
.modal-head p { margin: 6px 0 0; color: var(--muted); font-size: 14px; }
.close { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-strong); background: transparent; font-size: 20px; line-height: 1; }
.close:hover { border-color: var(--gold); }

/* ---------- COMO USAR ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.step { padding: 20px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--navy-900); }
.step b { display: block; color: var(--gold); font-size: 24px; font-weight: 800; }
.step h3 { font-size: 17px; margin: 8px 0 6px; }
.step p { margin: 0; color: var(--muted); font-size: 14px; }

/* ---------- OFERTA ---------- */
.offer-section { background: linear-gradient(180deg, var(--navy-950), var(--navy-900)); border-top: 1px solid var(--line); }
.offer {
  display: grid; gap: 28px; grid-template-columns: 1.1fr 0.9fr; align-items: start;
}
@media (max-width: 860px) { .offer { grid-template-columns: 1fr; } }
.niches { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.offer-card {
  background: linear-gradient(180deg, var(--navy-800), var(--navy-850));
  border: 1px solid rgba(242, 193, 78, 0.45); border-radius: 22px; padding: 26px; box-shadow: var(--shadow);
}
.badge { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; background: rgba(242, 193, 78, .15); color: var(--gold); padding: 6px 10px; border-radius: 999px; }
.price { font-size: 44px; font-weight: 800; margin: 14px 0 0; letter-spacing: -0.03em; }
.price small { font-size: 15px; font-weight: 500; color: var(--muted); letter-spacing: 0; display: block; }
.checks { list-style: none; padding: 0; margin: 20px 0 22px; display: grid; gap: 10px; }
.checks li { display: flex; gap: 10px; font-size: 15px; color: #d6e2fb; }
.checks li::before { content: "✓"; color: var(--gold); font-weight: 800; flex: none; }
.fine { font-size: 13px; color: var(--soft); text-align: center; margin: 12px 0 0; }

/* ---------- AUTOR / RODAPÉ ---------- */
.author { display: flex; gap: 16px; align-items: center; }
.author img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 2px solid var(--gold); }
.author b { display: block; }
.author span { color: var(--muted); font-size: 14px; }
footer { padding: 40px 0 60px; border-top: 1px solid var(--line); color: var(--soft); font-size: 13px; }
footer p { margin: 8px 0; max-width: 760px; }
footer a { color: var(--muted); }
.foot-links { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 16px; }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0;
  background: var(--gold); color: #1a1300; font-weight: 700; font-size: 14px;
  padding: 10px 18px; border-radius: 999px; transition: .2s; z-index: 80; pointer-events: none;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- fundo usado nas páginas legais ---------- */
.bio-page {
  min-height: 100vh;
  background:
    radial-gradient(700px 420px at 50% -10%, rgba(127, 178, 255, 0.22), transparent 60%),
    linear-gradient(180deg, var(--navy-900), var(--navy-950));
}

/* ---------- páginas legais ---------- */
.legal { width: min(760px, 100% - 40px); margin-inline: auto; padding: 48px 0 72px; }
.legal h1 { font-size: clamp(28px, 5vw, 38px); margin: 14px 0 6px; }
.legal h2 { font-size: 20px; margin: 32px 0 8px; }
.legal p, .legal li { color: #cfdaf2; }
.legal .updated { color: var(--soft); font-size: 14px; }
.legal a { color: var(--sky); }

/* ---------- impressão / PDF ---------- */
.print-only { display: none; }
@media print {
  body { background: #fff; color: #0b1d42; }
  .no-print, .hero, .modal, .toast, footer, .offer-section, #como-usar, #categorias { display: none !important; }
  .print-only { display: block !important; }
  .print-title { font-size: 24px; margin: 0 0 4px; color: #0b1d42; }
  .print-sub { margin: 0 0 18px; color: #3b4b70; font-size: 12px; }
  .print-cat { font-size: 16px; color: #0b1d42; margin: 22px 0 8px; border-bottom: 2px solid #f2c14e; padding-bottom: 4px; break-after: avoid; }
  .print-item { break-inside: avoid; margin: 0 0 12px; }
  .print-item h4 { margin: 0 0 4px; font-size: 13px; color: #0b1d42; }
  .print-item p { margin: 0; font-size: 11.5px; color: #1d2b4d; white-space: pre-wrap; line-height: 1.5; }
  @page { margin: 16mm 14mm; }
}
