/* ─────────────────────────────────────────
   SG Group · Playbook da operação comercial
   Base visual compartilhada: home, diagnóstico, 404 e playbook interno de cliente.
   Tokens herdados do site (index.html): petróleo profundo, prata, bronze; Playfair + Lora.
   Inter só nas representações de interface (WhatsApp, CRM, tarefas, painel).
───────────────────────────────────────── */
:root {
  --black: #071318;
  --dark: #0d2530;
  --petroleo: #1a3a44;
  --teal: #2a6b7c;
  --card: rgba(30, 74, 92, 0.15);
  --card-hi: rgba(30, 74, 92, 0.30);
  --border: rgba(201, 168, 130, 0.2);
  --border-hi: rgba(201, 168, 130, 0.5);
  --gold: #c9a882;
  --gold-light: #dfc0a0;
  --gold-dark: #a67c52;
  --bronze: #8b6343;
  --gold-a06: rgba(201, 168, 130, .06);
  --gold-a10: rgba(201, 168, 130, .10);
  --gold-a15: rgba(201, 168, 130, .15);
  --gold-a28: rgba(201, 168, 130, .28);
  --text: #f0ede8;
  --text-2: #c9c5bd;
  --muted: #8aacb8;
  --ok: #35a870;
  --alert: #e5486f;
  --warn: #e8b44a;
  --data-teal: #2e9fbe;
  --data-bronze: #c08536;
  --wa: #25d366;
  --bub-in: #17323b;
  --bub-out: #2a2a20;
  --font-d: 'Playfair Display', Georgia, serif;
  --font-b: 'Lora', Georgia, serif;
  --font-ui: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --sp-1: 8px; --sp-2: 16px; --sp-3: 24px; --sp-4: 32px; --sp-5: 40px; --sp-6: 56px; --sp-7: 72px; --sp-8: 112px;
  --r-pill: 9999px; --r-xl: 22px; --r-lg: 16px; --r-md: 12px; --r-sm: 8px;
  --text-hero: clamp(42px, 5.4vw, 80px);
  --text-h2: clamp(32px, 3.7vw, 54px);
  --text-h3: clamp(20px, 1.7vw, 24px);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --wrap: 1180px;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-b);
  background: radial-gradient(ellipse at 50% 18%, #1e4a5c 0%, #0d2530 45%, #071318 100%) fixed;
  background-color: var(--black);
  color: var(--text);
  line-height: 1.65;
  font-size: 17px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--gold); color: var(--black); }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── navegação (mesma pílula do site) ── */
#nav { position: fixed; top: 0; left: 0; right: 0; z-index: 200; padding: 20px 24px; display: flex; justify-content: center; transition: padding .35s var(--ease); }
#nav.scrolled { padding: 10px 24px; }
.nav-pill { display: flex; align-items: center; justify-content: space-between; width: 100%; max-width: 980px; background: rgba(7, 19, 24, .86); backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px); border: 1px solid var(--border); border-radius: var(--r-pill); padding: 9px 10px 9px 18px; gap: 16px; }
.nav-logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-d); font-size: 18px; font-weight: 500; letter-spacing: .02em; white-space: nowrap; }
.nav-logo-mark { width: 28px; height: 28px; border-radius: 6px; background: linear-gradient(135deg, var(--gold-light), var(--gold-dark)); display: grid; place-items: center; font-family: var(--font-d); font-weight: 700; font-size: 13px; color: var(--black); }
.nav-links { display: flex; gap: 26px; list-style: none; }
.nav-links a { font-family: var(--font-ui); font-size: 13px; color: var(--muted); transition: color .2s; white-space: nowrap; }
.nav-links a:hover, .nav-links a.on { color: var(--text); }
.btn-gold { display: inline-flex; align-items: center; gap: 9px; padding: 13px 24px; background: linear-gradient(0deg, #b48c62, var(--gold)); color: var(--black); border-radius: var(--r-pill); font-family: var(--font-ui); font-size: 14px; font-weight: 600; letter-spacing: .01em; transition: transform .22s, box-shadow .22s, filter .22s; white-space: nowrap; }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 12px 36px var(--gold-a28); filter: brightness(1.06); }
.btn-gold.sm { padding: 9px 18px; font-size: 13px; }
.btn-line { display: inline-flex; align-items: center; gap: 9px; padding: 12px 22px; border: 1px solid var(--border-hi); color: var(--text); border-radius: var(--r-pill); font-family: var(--font-ui); font-size: 14px; transition: background .2s, border-color .2s; }
.btn-line:hover { background: var(--gold-a10); border-color: var(--gold); }
.nav-burger { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.nav-burger span { width: 21px; height: 1.5px; background: var(--text); display: block; }
.mob-menu { display: none; position: fixed; inset: 0; z-index: 199; background: var(--black); padding: 96px 28px 40px; flex-direction: column; }
.mob-menu.open { display: flex; }
.mob-menu a { font-family: var(--font-d); font-size: 30px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.mob-close { position: absolute; top: 22px; right: 26px; font-size: 26px; color: var(--muted); }

/* ── seções ── */
.sec { padding: var(--sp-8) 0; position: relative; }
.sec-head { max-width: 760px; margin-bottom: var(--sp-6); }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.kicker { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-ui); font-size: 13px; color: var(--gold); margin-bottom: 18px; }
.kicker::before { content: ''; width: 22px; height: 1px; background: var(--gold); }
.sec-head.center .kicker::after { content: ''; width: 22px; height: 1px; background: var(--gold); }
h1, h2, h3 { font-family: var(--font-d); font-weight: 500; letter-spacing: -.005em; text-wrap: balance; }
h2 { font-size: var(--text-h2); line-height: 1.1; }
h2 em, h1 em { font-style: italic; color: var(--gold); }
h3 { font-size: var(--text-h3); line-height: 1.25; }
.lede { font-size: 19px; color: var(--text-2); margin-top: 18px; max-width: 64ch; line-height: 1.7; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.ui { font-family: var(--font-ui); }
.gold { color: var(--gold); }

/* ── blocos genéricos ── */
.panel { background: var(--card); border: 1px solid var(--border); border-radius: var(--r-xl); padding: 28px; }
.panel.solid { background: rgba(10, 26, 32, .82); }
.tag { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-ui); font-size: 12px; padding: 4px 10px; border-radius: var(--r-pill); border: 1px solid var(--border); color: var(--gold); background: var(--gold-a06); white-space: nowrap; }
.tag.ok { color: var(--ok); border-color: rgba(53,168,112,.4); background: rgba(53,168,112,.08); }
.tag.alert { color: #f07a95; border-color: rgba(229,72,111,.4); background: rgba(229,72,111,.08); }
.tag.mute { color: var(--muted); border-color: rgba(138,172,184,.3); background: rgba(138,172,184,.06); }
.col-chip { display: inline-block; font-family: var(--font-ui); font-size: 12.5px; font-weight: 500; padding: 3px 10px; border-radius: 6px; background: rgba(42,107,124,.35); border: 1px solid rgba(46,159,190,.35); color: #cfe7ee; white-space: nowrap; }
.col-chip.won { background: rgba(53,168,112,.16); border-color: rgba(53,168,112,.45); color: #bfe9d3; }
.col-chip.lost { background: rgba(138,172,184,.1); border-color: rgba(138,172,184,.3); color: var(--muted); }

/* ── WhatsApp (representação) ── */
.phone { width: 100%; max-width: 360px; border-radius: 44px; background: #0a181d; border: 9px solid #13262d; box-shadow: 0 40px 100px rgba(0,0,0,.5), 0 0 0 1px var(--gold-a28); overflow: hidden; display: flex; flex-direction: column; }
.ph-head { padding: 22px 18px 12px; display: flex; align-items: center; gap: 10px; background: #10252c; border-bottom: 1px solid rgba(240,237,232,.06); font-family: var(--font-ui); }
.ph-av { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, var(--gold-light), var(--gold-dark)); display: grid; place-items: center; font-family: var(--font-d); font-weight: 700; font-size: 14px; color: var(--black); flex: none; }
.ph-nm { font-size: 15px; font-weight: 600; line-height: 1.2; }
.ph-st { font-size: 12px; color: var(--muted); }
.ph-body { flex: 1; padding: 14px 12px 16px; display: flex; flex-direction: column; gap: 10px; overflow: hidden; background: linear-gradient(180deg, #0c1d23, #0a171c); font-family: var(--font-ui); }
.m { display: flex; }
.m.in { justify-content: flex-start; }
.m.out { justify-content: flex-end; }
.m.sys { justify-content: center; }
.bub { max-width: 86%; padding: 9px 12px 7px; border-radius: 14px; font-size: 14px; line-height: 1.42; color: var(--text); overflow-wrap: anywhere; }
.m.in .bub { background: var(--bub-in); border-top-left-radius: 4px; }
.m.out .bub { background: var(--bub-out); border: 1px solid var(--gold-a28); border-top-right-radius: 4px; }
.m.tpl .bub { border-style: dashed; }
.m.sys .bub { background: rgba(42,107,124,.22); border: 1px solid rgba(46,159,190,.3); font-size: 12px; color: #cfe7ee; text-align: center; max-width: 94%; border-radius: 10px; }
.bub .who { display: block; font-size: 11px; color: var(--gold); font-weight: 600; margin-bottom: 3px; }
.bub .hr { display: block; text-align: right; font-size: 10.5px; color: rgba(240,237,232,.45); margin-top: 3px; }
.bub .btns { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.bub .btns span { display: block; text-align: center; padding: 7px; border-radius: 9px; border: 1px solid var(--gold-a28); color: var(--gold-light); font-size: 13px; }
.bub .media { display: flex; gap: 6px; margin-bottom: 6px; }
.bub .media i { display: block; width: 74px; height: 92px; border-radius: 8px; background: linear-gradient(160deg, #5a4130, #1f1813); position: relative; }
.bub .media i::after { content: '▶'; position: absolute; inset: 0; display: grid; place-items: center; color: rgba(240,237,232,.85); font-style: normal; font-size: 14px; }
.bub .foto { display: block; width: 150px; height: 104px; border-radius: 8px; margin-bottom: 4px; background: radial-gradient(ellipse at 35% 45%, #6b4a33 0%, #3a2a20 35%, #1d1714 70%); }
.bub .aud { display: flex; align-items: center; gap: 8px; }
.bub .aud b { width: 24px; height: 24px; border-radius: 50%; background: var(--gold); color: var(--black); display: grid; place-items: center; font-size: 10px; }
.bub .aud s { flex: 1; height: 18px; background: repeating-linear-gradient(90deg, rgba(240,237,232,.7) 0 2px, transparent 2px 5px); -webkit-mask: linear-gradient(90deg, #000 0 100%); text-decoration: none; opacity: .7; border-radius: 2px; }
.bub .tr { display: block; font-family: var(--font-b); font-style: italic; color: var(--muted); font-size: 13px; margin-top: 5px; }
.var { color: var(--gold-light); font-weight: 600; }
.typing-dots { display: inline-flex; gap: 5px; padding: 4px 2px; }
.typing-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); animation: dot 1.1s infinite ease-in-out; }
.typing-dots i:nth-child(2) { animation-delay: .15s; } .typing-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 80%, 100% { opacity: .35; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-4px); } }

/* ── tarefa (representação do CRM) ── */
.task { display: flex; gap: 14px; align-items: flex-start; background: #f0ede8; color: #0d1a1f; border-radius: 16px; padding: 14px 16px; font-family: var(--font-ui); box-shadow: 0 18px 40px rgba(0,0,0,.35); }
.task .ic { width: 34px; height: 34px; border-radius: 10px; flex: none; background: linear-gradient(135deg, var(--gold-light), var(--gold-dark)); display: grid; place-items: center; font-weight: 700; font-size: 15px; color: var(--black); }
.task .tt { font-size: 14.5px; font-weight: 600; line-height: 1.35; }
.task .mm { font-size: 12.5px; color: #4a5a60; margin-top: 3px; line-height: 1.4; }

/* ── revelação por rolagem (respeita movimento reduzido) ── */
.rv { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rv { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ── rodapé ── */
footer { border-top: 1px solid var(--border); background: rgba(7,19,24,.7); padding: 32px 0; font-family: var(--font-ui); }
.foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.foot-logo { font-family: var(--font-d); font-size: 18px; }
.foot-copy, .foot-links a { font-size: 13px; color: var(--muted); }
.foot-links { display: flex; gap: 22px; }
.foot-links a:hover { color: var(--text); }

@media (max-width: 900px) {
  .nav-links, #nav .btn-gold { display: none; }
  .nav-burger { display: flex; }
  .sec { padding: 80px 0; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .panel { padding: 20px; }
  .lede { font-size: 17px; }
}
