/* ============================================================================
   PhotoJob — Institucional
   Identidade do painel: Montserrat + #ff5252 + paleta Vuexy (theme.js).
   Estética: editorial premium, clara, espaçosa. Vermelho da marca como
   pontuação/CTA. Acento serifado (Fraunces) só em palavras-destaque.
   ============================================================================ */

/* ---------- Tokens ---------- */
:root {
  /* Marca / paleta (theme.js) */
  --pj-red: #ff5252;
  --pj-red-600: #f23b3b;
  --pj-red-700: #d92f2f;
  --pj-red-soft: #fff0f0;
  --pj-ink: #2f2b3d;          /* on-surface */
  --pj-ink-70: rgba(47, 43, 61, 0.72);
  --pj-ink-50: rgba(47, 43, 61, 0.55);
  --pj-ink-30: rgba(47, 43, 61, 0.30);
  --pj-bg: #f8f7fa;           /* background */
  --pj-surface: #ffffff;
  --pj-line: rgba(47, 43, 61, 0.10);
  --pj-line-strong: rgba(47, 43, 61, 0.16);
  --pj-success: #28c76f;
  --pj-success-soft: #e7f9ef;
  --pj-warning: #ff9f43;
  --pj-info: #00cfe8;

  /* Tipografia */
  --font-sans: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Fraunces', 'Montserrat', serif;

  /* Sombras (suaves, estilo card do painel) */
  --shadow-sm: 0 2px 8px rgba(47, 43, 61, 0.06);
  --shadow-md: 0 12px 32px -12px rgba(47, 43, 61, 0.18);
  --shadow-lg: 0 32px 64px -24px rgba(47, 43, 61, 0.28);
  --shadow-red: 0 16px 40px -12px rgba(255, 82, 82, 0.45);

  /* Raio */
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 28px;
  --r-xl: 36px;

  /* Layout */
  --maxw: 1200px;
  --gutter: clamp(20px, 5vw, 64px);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 500;
  color: var(--pj-ink);
  background-color: var(--pj-bg);
  /* textura sutil de grão + brilho — foge do "flat AI" */
  background-image:
    radial-gradient(1200px 600px at 88% -8%, rgba(255, 82, 82, 0.07), transparent 60%),
    radial-gradient(900px 500px at -6% 4%, rgba(0, 207, 232, 0.05), transparent 55%);
  background-attachment: fixed;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

/* grão global */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Tipografia ---------- */
h1, h2, h3, h4 {
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.08;
  color: var(--pj-ink);
}

.display {
  font-size: clamp(2.6rem, 6.5vw, 5rem);
  font-weight: 800;
  letter-spacing: -0.035em;
}
.display em {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--pj-red);
}

.h2 { font-size: clamp(2rem, 4vw, 3.1rem); letter-spacing: -0.03em; }
.h3 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); }

.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  color: var(--pj-ink-70);
  font-weight: 500;
  max-width: 56ch;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--pj-red);
}
.eyebrow::before {
  content: '';
  width: 28px;
  height: 2px;
  background: var(--pj-red);
  border-radius: 2px;
}
.eyebrow.center::before { display: none; }

.text-muted { color: var(--pj-ink-70); }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

section { position: relative; }
.section { padding-block: clamp(64px, 9vw, 130px); }
.section-tight { padding-block: clamp(48px, 6vw, 84px); }

.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head .h2 { margin-top: 0.9rem; }
.section-head .lead { margin-top: 1.1rem; }
.section-head.center .lead { margin-inline: auto; }

.divider { height: 1px; background: var(--pj-line); border: 0; margin: 0; }

/* ---------- Botões ---------- */
.btn {
  --bg: var(--pj-ink);
  --fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 1.6rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: -0.01em;
  border: 1px solid transparent;
  background: var(--bg);
  color: var(--fg);
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.25s, background 0.2s;
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  --bg: var(--pj-red);
  --fg: #fff;
  box-shadow: var(--shadow-red);
}
.btn-primary:hover { --bg: var(--pj-red-600); }

.btn-dark { --bg: var(--pj-ink); --fg: #fff; box-shadow: var(--shadow-md); }
.btn-dark:hover { --bg: #211e2c; }

.btn-ghost {
  --bg: transparent;
  --fg: var(--pj-ink);
  border-color: var(--pj-line-strong);
}
.btn-ghost:hover { background: #fff; box-shadow: var(--shadow-sm); }

.btn-lg { padding: 1.1rem 2rem; font-size: 1.05rem; }
.btn-block { width: 100%; }

.arrow { transition: transform 0.25s; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  transition: background 0.3s, box-shadow 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(248, 247, 250, 0.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom-color: var(--pj-line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 76px;
}
.brand { display: inline-flex; align-items: center; gap: 0.6rem; }
.brand img { height: 30px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  display: inline-block;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--pj-ink-70);
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover { color: var(--pj-ink); background: rgba(47, 43, 61, 0.05); }
.nav-links a.active { color: var(--pj-red); }

.nav-cta { display: flex; align-items: center; gap: 0.6rem; }
.nav-login {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--pj-ink);
  padding: 0.5rem 0.4rem;
}
.nav-login:hover { color: var(--pj-red); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid var(--pj-line);
  border-radius: 12px;
  cursor: pointer;
}
.nav-toggle span {
  width: 20px;
  height: 2px;
  background: var(--pj-ink);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
body.menu-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.menu-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(48px, 7vw, 90px); padding-bottom: clamp(56px, 8vw, 110px); }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.4rem 0.4rem 0.4rem 0.9rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--pj-line);
  box-shadow: var(--shadow-sm);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--pj-ink-70);
  margin-bottom: 1.6rem;
}
.hero-badge b { color: var(--pj-ink); }
.hero-badge .pill {
  background: var(--pj-success-soft);
  color: #1c9e57;
  font-weight: 700;
  font-size: 0.72rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
}
.hero h1 { margin-bottom: 1.3rem; }
.hero .lead { margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; align-items: center; }
.hero-note {
  margin-top: 1.4rem;
  font-size: 0.9rem;
  color: var(--pj-ink-50);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ---------- Hero imersivo full-bleed (cena 3D ocupa a tela toda) ---------- */
.hero-immersive {
  position: relative;
  min-height: min(92vh, 820px);
  display: flex;
  align-items: center;
  padding-block: clamp(48px, 9vh, 110px);
  overflow: hidden;
  /* fallback atmosférico (mostra se o WebGL falhar) */
  background:
    radial-gradient(58% 70% at 78% 32%, rgba(255, 82, 82, 0.16), transparent 60%),
    radial-gradient(52% 62% at 94% 78%, rgba(255, 159, 67, 0.13), transparent 60%),
    radial-gradient(46% 58% at 60% 10%, rgba(0, 207, 232, 0.12), transparent 60%);
}
.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0;
  transition: opacity 1.1s ease;
}
.hero-immersive.has-3d .hero-canvas { opacity: 1; }
/* scrim p/ legibilidade do texto sobre a cena */
.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(90deg,
    var(--pj-bg) 0%,
    rgba(248, 247, 250, 0.86) 26%,
    rgba(248, 247, 250, 0.30) 52%,
    rgba(248, 247, 250, 0) 72%);
}
.hero-inner { position: relative; z-index: 2; width: 100%; }
.hero-immersive .hero-copy { max-width: 600px; }
.hero-immersive .hero-chip {
  position: absolute;
  right: clamp(16px, 6vw, 96px);
  top: 24%;
  left: auto;
  z-index: 3;
  opacity: 0;
  transition: opacity 0.8s ease 0.4s;
}
.hero-immersive.has-3d .hero-chip { opacity: 1; }
@media (max-width: 860px) {
  .hero-immersive { min-height: auto; padding-block: clamp(40px, 8vh, 80px); }
  .hero-scrim {
    background: linear-gradient(180deg, rgba(248, 247, 250, 0.80) 0%, rgba(248, 247, 250, 0.55) 55%, rgba(248, 247, 250, 0.28) 100%);
  }
  .hero-immersive .hero-chip { display: none; }
}
.hero-stack {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.shot {
  border-radius: var(--r-lg);
  aspect-ratio: 3 / 4;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: linear-gradient(135deg, #ffe3e3, #fff6f6);
}
.shot::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 80% at 20% 10%, rgba(255, 255, 255, 0.6), transparent 50%);
}
.shot:nth-child(1) { background: linear-gradient(150deg, #2f2b3d, #4a4560); }
.shot:nth-child(2) { background: linear-gradient(150deg, #ff5252, #ff8a8a); margin-top: 36px; }
.shot:nth-child(3) { background: linear-gradient(150deg, #00cfe8, #7fe6f3); margin-top: -36px; }
.shot:nth-child(4) { background: linear-gradient(150deg, #ff9f43, #ffc78a); }
.shot .tag {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 2;
  background: rgba(255, 255, 255, 0.92);
  color: var(--pj-ink);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  backdrop-filter: blur(6px);
}
/* card flutuante "nova venda" */
.hero-chip {
  position: absolute;
  right: -8px;
  top: 28px;
  z-index: 3;
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  padding: 0.8rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  animation: floaty 5s ease-in-out infinite;
}
.hero-chip .dot { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--pj-success-soft); }
.hero-chip small { display: block; color: var(--pj-ink-50); font-size: 0.72rem; font-weight: 600; }
.hero-chip strong { font-size: 0.95rem; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ---------- Faixa de logos/credibilidade ---------- */
.trust { border-block: 1px solid var(--pj-line); background: rgba(255, 255, 255, 0.5); }
.trust-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(1.5rem, 5vw, 3.5rem);
  padding-block: 1.4rem;
  color: var(--pj-ink-50);
  font-weight: 700;
  font-size: 0.92rem;
  text-align: center;
}
.trust-row span b { color: var(--pj-ink); font-size: 1.15rem; }

/* ---------- Grid de features ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feat-card {
  background: var(--pj-surface);
  border: 1px solid var(--pj-line);
  border-radius: var(--r-lg);
  padding: 1.8rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.3s, border-color 0.3s;
  position: relative;
  overflow: hidden;
}
.feat-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.feat-ico {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  margin-bottom: 1.2rem;
  background: var(--pj-red-soft);
  color: var(--pj-red);
}
.feat-ico svg { width: 26px; height: 26px; }
.feat-card h3 { font-size: 1.18rem; margin-bottom: 0.5rem; }
.feat-card p { margin: 0; color: var(--pj-ink-70); font-size: 0.98rem; }
.feat-card .num {
  position: absolute;
  top: 1.2rem;
  right: 1.4rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--pj-ink-30);
  font-weight: 600;
}
/* variação de cor dos ícones */
.feat-card:nth-child(3n+2) .feat-ico { background: #e9fbf1; color: var(--pj-success); }
.feat-card:nth-child(3n+3) .feat-ico { background: #e4faff; color: #06a7bd; }

/* ---------- Bloco alternado (texto + visual) ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.split.reverse .split-visual { order: -1; }
.split-visual {
  border-radius: var(--r-xl);
  aspect-ratio: 4 / 3;
  background: linear-gradient(150deg, #2f2b3d, #514b66);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.split-visual.red { background: linear-gradient(150deg, #ff5252, #ff9b6b); }
.split-visual .glass {
  position: absolute;
  inset: auto 18px 18px 18px;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 18px;
  padding: 1rem 1.2rem;
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-md);
}
.split-visual .glass .bar { height: 8px; border-radius: 4px; background: var(--pj-line-strong); margin-bottom: 8px; }
.split-visual .glass .bar.s { width: 55%; }
.split-visual .glass .bar.r { width: 35%; background: var(--pj-red); }
.checklist { list-style: none; padding: 0; margin: 1.6rem 0 2rem; display: grid; gap: 0.85rem; }
.checklist li { display: flex; gap: 0.7rem; align-items: flex-start; font-weight: 600; color: var(--pj-ink); }
.checklist .ck {
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: var(--pj-success-soft);
  color: var(--pj-success);
  display: grid;
  place-items: center;
  margin-top: 1px;
}
.checklist .ck svg { width: 14px; height: 14px; }

/* ---------- Mockups de UI (cards das seções) ---------- */
.mock-stage {
  border-radius: var(--r-xl);
  padding: clamp(20px, 3vw, 42px);
  background: linear-gradient(150deg, #fff0f0, #eaf7fb);
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}
.mock-stage::before {
  content: '';
  position: absolute;
  width: 300px; height: 300px;
  right: -90px; top: -110px;
  background: radial-gradient(circle, rgba(255, 82, 82, 0.20), transparent 65%);
  pointer-events: none;
}
.mock {
  position: relative;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--pj-line);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.mock-bar {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 0.9rem;
  border-bottom: 1px solid var(--pj-line);
  background: #fbfbfc;
}
.mock-dots { display: flex; gap: 6px; flex: none; }
.mock-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--pj-line-strong); }
.mock-dots i:nth-child(1) { background: #ff5f57; }
.mock-dots i:nth-child(2) { background: #febc2e; }
.mock-dots i:nth-child(3) { background: #28c840; }
.mock-url {
  font-size: 0.72rem; font-weight: 600; color: var(--pj-ink-50);
  background: #fff; border: 1px solid var(--pj-line); border-radius: 999px;
  padding: 0.25rem 0.7rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mock-tag {
  margin-left: auto; flex: none;
  font-size: 0.64rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--pj-red); background: var(--pj-red-soft); padding: 0.22rem 0.55rem; border-radius: 999px;
}

/* Builder */
.builder { display: grid; grid-template-columns: 86px 1fr; }
.builder-rail {
  border-right: 1px solid var(--pj-line);
  padding: 0.7rem 0.5rem; display: grid; gap: 0.5rem; align-content: start; background: #fbfbfc;
}
.builder-rail .blk { display: grid; gap: 0.25rem; justify-items: center; font-size: 0.6rem; font-weight: 600; color: var(--pj-ink-50); }
.builder-rail .blk span {
  width: 100%; height: 30px; border-radius: 8px; background: #fff;
  border: 1px dashed var(--pj-line-strong); display: grid; place-items: center; color: var(--pj-red); font-size: 0.85rem;
}
.builder-canvas { padding: 0.9rem; display: grid; gap: 0.55rem; align-content: start; }
.bc-hero {
  position: relative; border-radius: 10px; padding: 0.85rem 0.9rem; min-height: 92px; color: #fff;
  background: linear-gradient(135deg, #2f2b3d, #ff5252);
  display: flex; flex-direction: column; justify-content: center; gap: 0.25rem;
}
.bc-hero small { font-size: 0.56rem; letter-spacing: 0.12em; opacity: 0.8; }
.bc-hero b { font-family: var(--font-display); font-style: italic; font-weight: 500; font-size: 1.15rem; }
.bc-btn { align-self: flex-start; margin-top: 0.35rem; font-size: 0.62rem; font-weight: 700; background: #fff; color: var(--pj-ink); padding: 0.25rem 0.6rem; border-radius: 999px; }
.bc-handle { position: absolute; right: 8px; bottom: 8px; width: 14px; height: 14px; border: 2px solid rgba(255,255,255,.85); border-radius: 4px; }
.bc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.bc-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 7px; }
.bc-lines { display: grid; gap: 5px; }
.bc-lines i { height: 7px; border-radius: 4px; background: var(--pj-line-strong); }
.bc-lines i.s { width: 60%; }

/* Galeria (seleção do cliente) */
.gallery { padding: 0.9rem; }
.gl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.gl-it { position: relative; margin: 0; border-radius: 8px; overflow: hidden; }
.gl-it img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; display: block; }
.gl-it .pick { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; background: rgba(255, 82, 82, 0.34); font-size: 1.1rem; }
.gl-it.sel { outline: 3px solid var(--pj-red); outline-offset: -3px; border-radius: 8px; }
.gl-bar { display: flex; align-items: center; justify-content: space-between; margin-top: 0.85rem; font-size: 0.78rem; color: var(--pj-ink-70); }
.gl-bar b { color: var(--pj-ink); }
.gl-btn { background: var(--pj-success); color: #fff; font-weight: 700; font-size: 0.74rem; padding: 0.42rem 0.85rem; border-radius: 999px; }

/* Dashboard (painel) */
.dash { padding: 1rem; display: grid; gap: 0.8rem; }
.dash-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; }
.kpi { border: 1px solid var(--pj-line); border-radius: 12px; padding: 0.7rem 0.8rem; display: grid; gap: 0.12rem; }
.kpi small { font-size: 0.62rem; color: var(--pj-ink-50); font-weight: 600; }
.kpi b { font-size: 1.1rem; }
.kpi i { font-style: normal; font-size: 0.62rem; font-weight: 700; color: var(--pj-success); }
.dash-chart { display: flex; align-items: flex-end; gap: 8px; height: 104px; padding: 0.8rem; border: 1px solid var(--pj-line); border-radius: 12px; }
.dash-chart span { flex: 1; border-radius: 5px 5px 0 0; background: linear-gradient(var(--pj-red), #ff9b8a); opacity: 0.9; }

/* posição do mock no split invertido */
.split.reverse .mock-stage { order: -1; }

/* ---------- Steps / como funciona ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step {
  background: #fff;
  border: 1px solid var(--pj-line);
  border-radius: var(--r-lg);
  padding: 2rem 1.7rem;
  position: relative;
}
.step .n {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 600;
  color: var(--pj-red);
  line-height: 1;
  margin-bottom: 1rem;
}
.step h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.step p { margin: 0; color: var(--pj-ink-70); }

/* ---------- Depoimentos ---------- */
.testimonials { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.quote {
  background: #fff;
  border: 1px solid var(--pj-line);
  border-radius: var(--r-lg);
  padding: 2rem 2rem 1.6rem;
  box-shadow: var(--shadow-sm);
  position: relative;
}
.quote .mark {
  font-family: var(--font-display);
  font-size: 4rem;
  line-height: 0.6;
  color: var(--pj-red);
  opacity: 0.25;
  height: 30px;
}
.quote p { font-size: 1.12rem; color: var(--pj-ink); font-weight: 600; margin: 0.6rem 0 1.4rem; }
.quote .who { display: flex; align-items: center; gap: 0.8rem; }
.quote .av {
  width: 46px; height: 46px; border-radius: 50%;
  background: linear-gradient(135deg, var(--pj-red), #ff9b6b);
  color: #fff; display: grid; place-items: center; font-weight: 800;
}
.quote .who b { display: block; }
.quote .who small { color: var(--pj-ink-50); }

/* ---------- Pricing ---------- */
.pricing { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; align-items: stretch; }
.plan {
  background: #fff;
  border: 1px solid var(--pj-line);
  border-radius: var(--r-lg);
  padding: 1.9rem 1.6rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s, box-shadow 0.3s;
}
.plan:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.plan.popular {
  border-color: transparent;
  background: var(--pj-ink);
  color: #fff;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.plan.popular .plan-name,
.plan.popular .price .val,
.plan.popular .feat li { color: #fff; }
.plan .badge-pop {
  position: absolute;
  top: 1.4rem;
  right: 1.4rem;
  background: var(--pj-red);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
}
.plan-name { font-size: 1.25rem; font-weight: 800; }
.plan-desc { color: var(--pj-ink-50); font-size: 0.88rem; margin-top: 0.2rem; min-height: 1.2rem; }
.plan.popular .plan-desc { color: rgba(255, 255, 255, 0.6); }
.price { margin: 1.3rem 0 1.4rem; display: flex; align-items: baseline; gap: 0.25rem; }
.price .cur { font-size: 1.1rem; font-weight: 700; color: var(--pj-ink-50); }
.plan.popular .price .cur { color: rgba(255, 255, 255, 0.7); }
.price .val { font-size: 2.9rem; font-weight: 800; letter-spacing: -0.03em; }
.price .per { font-size: 0.92rem; color: var(--pj-ink-50); font-weight: 600; }
.plan.popular .price .per { color: rgba(255, 255, 255, 0.7); }
.feat { list-style: none; padding: 0; margin: 0 0 1.6rem; display: grid; gap: 0.7rem; flex: 1; }
.feat li { display: flex; gap: 0.55rem; align-items: flex-start; font-size: 0.92rem; color: var(--pj-ink-70); font-weight: 500; }
.feat .ck { flex: none; color: var(--pj-success); margin-top: 2px; }
.feat .ck svg { width: 15px; height: 15px; }
.plan.popular .feat li { color: rgba(255, 255, 255, 0.86); }
.plan.popular .feat .ck { color: #5cf0a0; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, #2f2b3d 0%, #3c3650 60%, #ff5252 180%);
  border-radius: var(--r-xl);
  padding: clamp(40px, 6vw, 72px);
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.cta-band::before {
  content: '';
  position: absolute;
  width: 420px; height: 420px;
  right: -80px; top: -160px;
  background: radial-gradient(circle, rgba(255, 82, 82, 0.55), transparent 65%);
}
.cta-band h2 { color: #fff; font-size: clamp(1.8rem, 3.6vw, 2.8rem); position: relative; }
.cta-band p { color: rgba(255, 255, 255, 0.78); max-width: 52ch; margin: 1rem auto 2rem; position: relative; }
.cta-band .hero-actions { justify-content: center; position: relative; }

/* ---------- Page hero (páginas internas) ---------- */
.page-hero { padding-block: clamp(56px, 8vw, 110px) clamp(20px, 3vw, 40px); text-align: center; }
.page-hero .display { font-size: clamp(2.4rem, 5vw, 4rem); }
.page-hero .lead { margin: 1.2rem auto 0; }

/* ---------- Formulário (Fale Conosco) ---------- */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.contact-card {
  background: #fff;
  border: 1px solid var(--pj-line);
  border-radius: var(--r-lg);
  padding: clamp(1.6rem, 3vw, 2.4rem);
  box-shadow: var(--shadow-sm);
}
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 700; font-size: 0.88rem; margin-bottom: 0.5rem; }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--pj-line-strong);
  border-radius: 12px;
  font-family: inherit;
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--pj-ink);
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input::placeholder,
.field textarea::placeholder { color: var(--pj-ink-30); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--pj-red);
  box-shadow: 0 0 0 4px rgba(255, 82, 82, 0.12);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.contact-aside { display: grid; gap: 1rem; }
.info-card {
  background: #fff;
  border: 1px solid var(--pj-line);
  border-radius: var(--r-md);
  padding: 1.3rem 1.4rem;
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
}
.info-card .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--pj-red-soft); color: var(--pj-red); display: grid; place-items: center; flex: none; }
.info-card .ico svg { width: 20px; height: 20px; }
.info-card b { display: block; }
.info-card a, .info-card span { color: var(--pj-ink-70); font-weight: 500; }
.form-msg { padding: 0.9rem 1rem; border-radius: 12px; font-weight: 600; font-size: 0.92rem; margin-bottom: 1rem; display: none; }
.form-msg.ok { display: block; background: var(--pj-success-soft); color: #1c9e57; }
.form-msg.err { display: block; background: var(--pj-red-soft); color: var(--pj-red-700); }

/* ---------- Blog ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.post {
  background: #fff;
  border: 1px solid var(--pj-line);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
}
.post:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.post .thumb { aspect-ratio: 16 / 10; background: linear-gradient(150deg, #2f2b3d, #514b66); position: relative; }
.post:nth-child(2) .thumb { background: linear-gradient(150deg, #ff5252, #ff9b6b); }
.post:nth-child(3) .thumb { background: linear-gradient(150deg, #00cfe8, #7fe6f3); }
.post .thumb .cat {
  position: absolute; left: 14px; top: 14px;
  background: rgba(255, 255, 255, 0.92); color: var(--pj-ink);
  font-size: 0.72rem; font-weight: 700; padding: 0.3rem 0.7rem; border-radius: 999px;
}
.post .body { padding: 1.4rem 1.5rem 1.6rem; flex: 1; display: flex; flex-direction: column; }
.post .body small { color: var(--pj-ink-50); font-weight: 600; font-size: 0.8rem; }
.post .body h3 { font-size: 1.15rem; margin: 0.5rem 0 0.6rem; }
.post .body p { color: var(--pj-ink-70); margin: 0 0 1rem; flex: 1; }
.post .read { font-weight: 700; color: var(--pj-red); font-size: 0.9rem; }

.empty-state {
  text-align: center;
  background: #fff;
  border: 1px dashed var(--pj-line-strong);
  border-radius: var(--r-lg);
  padding: clamp(40px, 6vw, 72px);
}
.empty-state .ico { width: 64px; height: 64px; border-radius: 18px; background: var(--pj-red-soft); color: var(--pj-red); display: grid; place-items: center; margin: 0 auto 1.2rem; }

/* ---------- Conteúdo legal (termos/privacidade) ---------- */
.legal { max-width: 760px; margin-inline: auto; }
.legal h2 { font-size: 1.4rem; margin-top: 2.4rem; margin-bottom: 0.8rem; }
.legal h2:first-child { margin-top: 0; }
.legal p, .legal li { color: var(--pj-ink-70); }
.legal ul { padding-left: 1.2rem; }
.legal .updated { color: var(--pj-ink-50); font-size: 0.9rem; margin-bottom: 2rem; }

/* ---------- FAQ ---------- */
.faq { max-width: 800px; margin-inline: auto; display: grid; gap: 0.8rem; }
.faq details {
  background: #fff;
  border: 1px solid var(--pj-line);
  border-radius: var(--r-md);
  padding: 0 1.4rem;
  transition: box-shadow 0.2s;
}
.faq details[open] { box-shadow: var(--shadow-sm); }
.faq summary {
  list-style: none;
  cursor: pointer;
  font-weight: 700;
  padding: 1.2rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .plus { flex: none; width: 24px; height: 24px; position: relative; }
.faq summary .plus::before,
.faq summary .plus::after { content: ''; position: absolute; background: var(--pj-red); border-radius: 2px; transition: transform 0.25s; }
.faq summary .plus::before { inset: 11px 4px auto 4px; height: 2px; }
.faq summary .plus::after { inset: 4px 11px 4px auto; width: 2px; }
.faq details[open] summary .plus::after { transform: scaleY(0); }
.faq details p { margin: 0 0 1.2rem; color: var(--pj-ink-70); }

/* ---------- Footer ---------- */
.site-footer { background: var(--pj-ink); color: rgba(255, 255, 255, 0.7); margin-top: clamp(40px, 6vw, 90px); }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: clamp(28px, 4vw, 64px); padding-block: clamp(48px, 6vw, 80px); }
.footer-brand img { height: 30px; margin-bottom: 1.2rem; }
.footer-brand p { max-width: 38ch; color: rgba(255, 255, 255, 0.6); }
.footer-social { display: flex; gap: 0.6rem; margin-top: 1.4rem; }
.footer-social a {
  width: 42px; height: 42px; border-radius: 12px;
  background: rgba(255, 255, 255, 0.08); display: grid; place-items: center;
  transition: background 0.2s, transform 0.2s;
}
.footer-social a:hover { background: var(--pj-red); transform: translateY(-2px); }
.footer-social svg { width: 20px; height: 20px; fill: #fff; }
.footer-col h4 { color: #fff; font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 1.1rem; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.7rem; }
.footer-col a { color: rgba(255, 255, 255, 0.7); font-weight: 500; transition: color 0.2s; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-block: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

/* ---------- Animações de revelação ----------
   Gated por `.js`: sem JavaScript (ou para crawlers/sem-JS) o conteúdo já
   aparece. A classe `js` é adicionada ao <html> no <head>, antes do paint. */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
.js .reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: 0.08s; }
.reveal[data-d="2"] { transition-delay: 0.16s; }
.reveal[data-d="3"] { transition-delay: 0.24s; }
.reveal[data-d="4"] { transition-delay: 0.32s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-chip { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Blog (SSR institucional) ---------- */
.blog-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap; margin-bottom: 2.2rem;
}
.blog-cats { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.blog-cat {
  border: 1px solid var(--pj-line-strong); background: #fff; border-radius: 999px;
  padding: 0.5rem 1.05rem; font-family: inherit; font-weight: 600; font-size: 0.9rem;
  color: var(--pj-ink-70); cursor: pointer; transition: all 0.2s;
}
.blog-cat:hover { border-color: var(--pj-red); color: var(--pj-ink); }
.blog-cat.active { background: var(--pj-ink); color: #fff; border-color: var(--pj-ink); }
.blog-search { position: relative; display: block; }
.blog-search input {
  width: 280px; max-width: 100%;
  border: 1px solid var(--pj-line-strong); border-radius: 999px;
  padding: 0.6rem 1rem 0.6rem 2.5rem; font-family: inherit; font-size: 0.95rem; color: var(--pj-ink); background: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: 0.85rem center;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.blog-search input:focus { outline: none; border-color: var(--pj-red); box-shadow: 0 0 0 4px rgba(255, 82, 82, 0.12); }

/* card com imagem real cobrindo o thumb (gradiente vira fallback) */
.post .thumb { position: relative; display: block; }
.post .thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.post .body h3 a { color: inherit; }
.post .body h3 a:hover { color: var(--pj-red); }
.post .read { cursor: pointer; }

/* Artigo (detalhe) */
.post-article { max-width: 760px; margin-inline: auto; }
.post-back { display: inline-block; color: var(--pj-red); font-weight: 700; font-size: 0.9rem; margin-bottom: 1.4rem; }
.post-back:hover { text-decoration: underline; }
.post-article .eyebrow { margin-bottom: 0.8rem; }
.post-title { font-size: clamp(2rem, 4.2vw, 3.1rem); letter-spacing: -0.03em; line-height: 1.1; margin: 0.6rem 0 0.8rem; }
.post-meta { color: var(--pj-ink-50); font-weight: 600; font-size: 0.92rem; margin: 0 0 1.8rem; }
.post-cover { border-radius: var(--r-lg); overflow: hidden; margin-bottom: 2rem; box-shadow: var(--shadow-md); }
.post-cover img { width: 100%; display: block; }
.post-content { font-size: 1.08rem; line-height: 1.78; color: var(--pj-ink-70); }
.post-content > *:first-child { margin-top: 0; }
.post-content p { margin: 0 0 1.15rem; }
.post-content h1, .post-content h2, .post-content h3, .post-content h4 { color: var(--pj-ink); margin: 2rem 0 0.8rem; line-height: 1.2; }
.post-content h2 { font-size: 1.6rem; }
.post-content h3 { font-size: 1.3rem; }
.post-content a { color: var(--pj-red); text-decoration: underline; }
.post-content img { max-width: 100%; height: auto; border-radius: 12px; margin: 1.4rem 0; }
.post-content ul, .post-content ol { padding-left: 1.3rem; margin: 0 0 1.15rem; }
.post-content li { margin-bottom: 0.4rem; }
.post-content blockquote {
  border-left: 3px solid var(--pj-red); margin: 1.6rem 0; padding: 0.2rem 0 0.2rem 1.2rem;
  color: var(--pj-ink); font-style: italic; font-size: 1.15rem;
}
.post-content figure { margin: 1.4rem 0; }
.post-content figcaption { color: var(--pj-ink-50); font-size: 0.86rem; text-align: center; margin-top: 0.5rem; }

/* ---------- Responsivo ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { max-width: 460px; margin-inline: auto; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .split.reverse .split-visual { order: 0; }
  .split.reverse .mock-stage { order: 0; }
  .steps { grid-template-columns: 1fr; }
  .testimonials { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  .nav-links, .nav-cta .nav-login { display: none; }
  .nav-toggle { display: flex; }
  /* menu mobile */
  .mobile-menu {
    position: fixed;
    inset: 76px 0 0 0;
    background: var(--pj-bg);
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
    z-index: 99;
    padding: 1.5rem var(--gutter) 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    overflow-y: auto;
  }
  body.menu-open .mobile-menu { transform: translateX(0); }
  body.menu-open { overflow: hidden; }
  .mobile-menu a.m-link {
    padding: 1rem 0.2rem;
    font-weight: 700;
    font-size: 1.15rem;
    border-bottom: 1px solid var(--pj-line);
  }
  .mobile-menu .btn { margin-top: 1rem; }
  .feature-grid, .pricing, .blog-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
}

/* menu mobile escondido por padrão em telas grandes */
.mobile-menu { display: none; }
@media (max-width: 720px) { .mobile-menu { display: flex; } }

@media (max-width: 600px) {
  .blog-toolbar { flex-direction: column; align-items: stretch; }
  .blog-search input { width: 100%; }
}
