/* =========================================================
   pisani.ai — Estilos compartilhados das páginas de serviço
   Mesma identidade visual da home (index.html): tokens,
   tipografia, espaçamentos, botões, cards e responsividade.
   ========================================================= */

:root {
  --bg: #0a0b0d;
  --bg-alt: #0d0f12;
  --surface: #101216;
  --surface-2: #12151b;
  --text: #eceef2;
  --text-2: #aeb2bd;
  --text-3: #9498a3;
  --muted: #7e828d;
  --muted-2: #5a5e69;
  --accent: #5b8def;
  --accent-2: #8cb0fa;
  --accent-deep: #3a64c8;
  --border-soft: rgba(255, 255, 255, .07);
  --border: rgba(255, 255, 255, .08);
  --border-mid: rgba(255, 255, 255, .12);
  --border-input: rgba(255, 255, 255, .14);
  --border-strong: rgba(255, 255, 255, .18);
  --accent-border: rgba(91, 141, 239, .3);
  --font-head: "Bricolage Grotesque", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", monospace;
}

* { box-sizing: border-box; min-width: 0; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, video, canvas, svg { max-width: 100%; }
section, header, footer, nav { max-width: 100%; }

::selection { background: rgba(91, 141, 239, .35); color: #fff; }

a { color: inherit; }

@keyframes pg-pulse { 0%, 100% { opacity: .45; } 50% { opacity: .85; } }
@keyframes pg-floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ---------- Progress bar ---------- */
.pg-progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  z-index: 120; box-shadow: 0 0 12px rgba(91, 141, 239, .6);
}

/* ---------- Nav ---------- */
.pg-nav {
  position: fixed; top: 0; left: 0; right: 0; height: 66px; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(20px, 5vw, 64px);
  backdrop-filter: blur(14px);
  background: rgba(10, 11, 13, .72);
  border-bottom: 1px solid var(--border-soft);
}
.pg-nav__brand {
  display: flex; align-items: center; gap: 11px;
  text-decoration: none; color: var(--text);
}
.pg-nav__brand img { max-height: 36px; }
.pg-nav__brand span {
  font-family: var(--font-head); font-weight: 700; font-size: 16px; letter-spacing: -.01em;
}
.pg-nav__right { display: flex; align-items: center; gap: 30px; }
.pg-nav__links { display: flex; align-items: center; gap: 26px; font-size: 13.5px; color: #b6b9c2; }
.pg-nav__links a { text-decoration: none; color: inherit; transition: color .2s; }
.pg-nav__links a:hover { color: var(--accent-2); }

/* ---------- Buttons ---------- */
.pg-btn {
  display: inline-flex; align-items: center; gap: 9px; justify-content: center;
  font-family: inherit; font-size: 15px; font-weight: 600;
  padding: 14px 24px; border-radius: 11px; border: none; cursor: pointer;
  text-decoration: none; line-height: 1.2;
  transition: transform .25s, box-shadow .25s, background .25s, border-color .25s;
}
.pg-btn--primary {
  color: #0a0b0d; background: var(--accent);
  box-shadow: 0 10px 30px rgba(91, 141, 239, .35);
}
.pg-btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(91, 141, 239, .5); }
.pg-btn--secondary {
  color: var(--text); background: transparent; font-weight: 500;
  border: 1px solid var(--border-strong);
}
.pg-btn--secondary:hover { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .4); }
.pg-btn--light {
  color: #0a0b0d; background: var(--text); font-size: 13.5px; font-weight: 500; padding: 9px 17px; border-radius: 9px;
}
.pg-btn--light:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(255, 255, 255, .12); }

/* ---------- Layout ---------- */
.pg-wrap { max-width: 1200px; margin: 0 auto; }
.pg-section { max-width: 1200px; margin: 0 auto; padding: clamp(70px, 10vw, 130px) clamp(20px, 5vw, 64px); }
.pg-section--alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  max-width: none;
}
.pg-section--alt > .pg-wrap { padding: clamp(70px, 10vw, 130px) clamp(20px, 5vw, 64px); }

.pg-eyebrow {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .2em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 18px;
}
.pg-h2 {
  font-family: var(--font-head); font-weight: 700;
  font-size: clamp(28px, 4vw, 46px); line-height: 1.1; letter-spacing: -.02em;
  margin: 0 0 18px; max-width: 820px; text-wrap: balance;
}
.pg-lead { font-size: clamp(16px, 1.5vw, 18px); line-height: 1.6; color: var(--text-3); max-width: 720px; margin: 0 0 40px; }
.pg-h3 { font-family: var(--font-head); font-weight: 700; font-size: 20px; margin: 0 0 10px; }

/* ---------- Hero ---------- */
.pg-hero {
  position: relative; overflow: hidden;
  padding: 150px clamp(20px, 5vw, 64px) clamp(70px, 9vw, 110px);
  border-bottom: 1px solid var(--border-soft);
}
.pg-hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; opacity: .85; }
.pg-hero__glow {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(1100px 700px at 78% 30%, rgba(91, 141, 239, .16), transparent 60%),
    radial-gradient(800px 600px at 8% 90%, rgba(91, 141, 239, .07), transparent 60%);
}
.pg-hero__inner { position: relative; z-index: 2; max-width: 900px; margin: 0 auto; text-align: center; }
.pg-badge {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent-2); border: 1px solid var(--accent-border); background: rgba(91, 141, 239, .08);
  padding: 7px 13px; border-radius: 100px; margin-bottom: 26px;
}
.pg-badge__dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 10px var(--accent); animation: pg-pulse 2.4s infinite;
}
.pg-hero h1 {
  font-family: var(--font-head); font-weight: 800;
  font-size: clamp(32px, 5vw, 60px); line-height: 1.04; letter-spacing: -.025em;
  margin: 0 0 22px; text-wrap: balance;
}
.pg-hero h1 .hl { color: var(--accent-2); }
.pg-hero__sub {
  font-size: clamp(16px, 1.6vw, 19px); line-height: 1.6; color: var(--text-2);
  max-width: 680px; margin: 0 auto 34px; text-wrap: pretty;
}
.pg-hero__cta { display: flex; flex-wrap: wrap; gap: 13px; justify-content: center; }

/* ---------- Cards / grids ---------- */
.pg-grid { display: grid; gap: 16px; }
.pg-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pg-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.pg-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; padding: 28px;
  transition: transform .3s, border-color .3s;
}
.pg-card:hover { transform: translateY(-4px); border-color: rgba(91, 141, 239, .45); }
.pg-card p { font-size: 15px; line-height: 1.6; color: var(--text-3); margin: 0; }
.pg-card__icon {
  width: 40px; height: 40px; border-radius: 11px; display: flex; align-items: center; justify-content: center;
  background: rgba(91, 141, 239, .12); border: 1px solid var(--accent-border);
  font-family: var(--font-head); font-weight: 800; color: var(--accent-2); font-size: 17px; margin-bottom: 16px;
}

/* card que é link (home soluções) */
a.pg-card { text-decoration: none; color: inherit; display: block; }
a.pg-card .pg-card__more {
  display: inline-block; margin-top: 14px; font-weight: 600; font-size: 14px; color: var(--accent-2);
  transition: transform .25s;
}
a.pg-card:hover .pg-card__more { transform: translateX(3px); }

.pg-card--cta {
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  border: none; display: flex; flex-direction: column; justify-content: center; gap: 12px;
}
.pg-card--cta:hover { transform: translateY(-4px); box-shadow: 0 18px 44px rgba(91, 141, 239, .45); border-color: transparent; }
.pg-card--cta h3 { color: #0a0b0d; font-weight: 800; font-size: 22px; margin: 0; }
.pg-card--cta p { color: rgba(10, 11, 13, .78); }
.pg-card--cta .pg-card__more { color: #0a0b0d; }

/* ---------- Lista de dores / bullets ---------- */
.pg-bullets { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.pg-bullets li {
  position: relative; padding: 18px 20px 18px 50px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  font-size: 15.5px; line-height: 1.55; color: var(--text-2);
}
.pg-bullets li::before {
  content: ""; position: absolute; left: 20px; top: 24px;
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 10px rgba(91, 141, 239, .6);
}
.pg-bullets strong { color: var(--text); font-weight: 600; }

/* checklist (o que está incluso) */
.pg-check li::before {
  content: "✓"; background: transparent; box-shadow: none;
  color: var(--accent-2); font-weight: 700; top: 17px; left: 19px;
  width: auto; height: auto; font-size: 15px;
}

/* ---------- Steps (como funciona) ---------- */
.pg-steps { display: grid; gap: 16px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pg-step {
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 26px;
}
.pg-step__num {
  font-family: var(--font-head); font-weight: 800; font-size: 34px; line-height: 1;
  color: var(--accent); margin-bottom: 14px;
}
.pg-step h3 { font-size: 17px; margin: 0 0 8px; }
.pg-step p { font-size: 14px; line-height: 1.55; color: var(--text-3); margin: 0; }

/* ---------- Transformação (antes/depois) ---------- */
.pg-transform { display: grid; grid-template-columns: 1fr auto 1fr; gap: 24px; align-items: center; }
.pg-transform__col {
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 30px;
}
.pg-transform__col--after { border-color: var(--accent-border); background: linear-gradient(135deg, var(--surface-2), var(--bg-alt)); }
.pg-transform__tag { font-family: var(--font-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 14px; }
.pg-transform__col--before .pg-transform__tag { color: var(--muted); }
.pg-transform__col--after .pg-transform__tag { color: var(--accent-2); }
.pg-transform__col p { margin: 0; font-size: 16px; line-height: 1.55; color: var(--text-2); }
.pg-transform__arrow { font-size: 28px; color: var(--accent); }

/* ---------- Bloco lateral (investimento / garantia) ---------- */
.pg-panel {
  background: linear-gradient(135deg, var(--surface-2), var(--bg-alt));
  border: 1px solid var(--accent-border); border-radius: 24px;
  padding: clamp(32px, 5vw, 56px); position: relative; overflow: hidden;
}
.pg-panel::after {
  content: ""; position: absolute; top: -40%; right: -10%; width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(91, 141, 239, .2), transparent 65%); filter: blur(20px); pointer-events: none;
}
.pg-panel > * { position: relative; }
.pg-panel p { font-size: 16px; line-height: 1.65; color: var(--text-2); margin: 0; }

.pg-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

/* ---------- CTA final ---------- */
.pg-final { position: relative; overflow: hidden; border-top: 1px solid var(--border-soft); }
.pg-final__glow {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(800px 500px at 50% 0%, rgba(91, 141, 239, .12), transparent 60%);
}
.pg-final__inner {
  position: relative; max-width: 820px; margin: 0 auto; text-align: center;
  padding: clamp(80px, 11vw, 150px) clamp(20px, 5vw, 64px);
}
.pg-final h2 {
  font-family: var(--font-head); font-weight: 800;
  font-size: clamp(28px, 4.6vw, 56px); line-height: 1.05; letter-spacing: -.025em; margin: 0 0 22px; text-wrap: balance;
}
.pg-final p { font-size: 17px; line-height: 1.6; color: var(--text-3); max-width: 560px; margin: 0 auto 36px; }
.pg-final__cta { display: flex; flex-wrap: wrap; gap: 13px; justify-content: center; }

/* ---------- Formulário (lista de espera / lead) ---------- */
.pg-form { display: flex; flex-direction: column; gap: 12px; max-width: 560px; margin: 0 auto; }
.pg-form__row { display: flex; gap: 12px; flex-wrap: wrap; }
.pg-input, .pg-select {
  width: 100%; background: var(--bg); border: 1px solid var(--border-input);
  color: var(--text); font-family: inherit; font-size: 15px; padding: 14px 16px;
  border-radius: 11px; outline: none; transition: border-color .2s;
}
.pg-form__row .pg-input { flex: 1; min-width: 140px; }
.pg-input:focus, .pg-select:focus { border-color: var(--accent); }
.pg-form__msg { font-size: 13.5px; color: var(--accent-2); min-height: 18px; }

/* ---------- Footer ---------- */
.pg-footer { border-top: 1px solid var(--border-soft); padding: 40px clamp(20px, 5vw, 64px); }
.pg-footer__inner {
  max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 16px;
}
.pg-footer__brand { display: flex; align-items: center; gap: 11px; }
.pg-footer__brand img { max-height: 36px; }
.pg-footer__brand span { font-size: 14px; color: var(--text-2); }
.pg-footer__meta { font-family: var(--font-mono); font-size: 12px; color: var(--muted-2); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1); will-change: opacity, transform; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsividade ---------- */
@media (max-width: 980px) {
  .pg-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pg-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .pg-nav { height: auto; min-height: 64px; padding: 10px 16px; }
  .pg-nav__links { display: none; }
  .pg-nav__right { gap: 12px; }
  .pg-hero { padding-top: 110px; }
  .pg-transform { grid-template-columns: 1fr; }
  .pg-transform__arrow { transform: rotate(90deg); justify-self: center; }
  .pg-duo { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .pg-grid--2, .pg-grid--3, .pg-steps { grid-template-columns: 1fr; }
  .pg-hero__cta .pg-btn, .pg-final__cta .pg-btn { flex: 1 1 100%; }
  .pg-form__row { flex-direction: column; }
  .pg-footer__inner { flex-direction: column; align-items: flex-start; }
}
