/*
 * home.css — home institucional da PapiCore (papicore.com.br/).
 * Independente de institutional.css (usado por prefcore.html, ainda "em
 * breve"), landing.css (AutoCore), arco.css (ARCO) e nursecore.css.
 * Paleta clara + azul tecnológico (gradiente azul → azul-céu) como assinatura.
 */

:root {
  --ph-bg-main: #ffffff;
  --ph-bg-soft: #f8fafc;
  --ph-bg-muted: #f2f4f7;
  --ph-surface: #ffffff;
  --ph-surface-hover: #fcfcfd;
  --ph-text: #101828;
  --ph-text-2: #475467;
  --ph-text-muted: #667085;
  --ph-border: #e4e7ec;
  --ph-border-soft: #eef2f6;
  --ph-brand: #2563eb;
  --ph-brand-hover: #1d4ed8;
  --ph-brand-soft: #eff6ff;
  --ph-brand-border: #bfdbfe;
  --ph-blue: #3b82f6;
  --ph-cyan: #0ea5e9;
  --ph-radius-lg: 24px;
  --ph-radius: 18px;
  --ph-radius-sm: 10px;
  --ph-max: 1240px;
  --ph-header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body.ph-page {
  margin: 0;
  background: var(--ph-bg-main);
  color: var(--ph-text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; }
a { color: inherit; }
h1, h2, h3, h4 { color: var(--ph-text); margin-top: 0; }

.ph-container { max-width: var(--ph-max); margin: 0 auto; padding: 0 24px; }
[id] { scroll-margin-top: calc(var(--ph-header-h) + 12px); }

.skip-link {
  position: absolute; left: 12px; top: -60px;
  background: var(--ph-brand); color: #ffffff;
  padding: 10px 16px; border-radius: var(--ph-radius-sm);
  z-index: 1000; transition: top 0.2s; font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ---------- Header ---------- */

.ph-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--ph-header-h); display: flex; align-items: center;
  background: #ffffff;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, backdrop-filter 0.2s ease, background 0.2s ease;
}
.ph-header[data-scrolled="true"] {
  border-bottom-color: var(--ph-border-soft);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(12px) saturate(160%);
  box-shadow: 0 8px 24px -18px rgba(16, 24, 40, 0.18);
}
.ph-header-inner {
  width: 100%; max-width: var(--ph-max); margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.ph-brand { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.ph-brand img { border-radius: 10px; }
.ph-brand-name { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; color: var(--ph-text); }
.ph-brand-name strong { color: var(--ph-brand); font-weight: 800; }

.ph-nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 40px; height: 40px; background: transparent; border: 1px solid var(--ph-border);
  border-radius: var(--ph-radius-sm);
}
.ph-nav-toggle span { display: block; width: 18px; height: 2px; margin: 0 auto; background: var(--ph-text); }

.ph-nav { display: flex; align-items: center; gap: 4px; }
.ph-nav a {
  position: relative; padding: 9px 15px; border-radius: 999px;
  font-size: 14px; font-weight: 600; color: var(--ph-text-2); text-decoration: none; transition: color 0.15s, background 0.15s;
}
.ph-nav a:hover, .ph-nav a:focus-visible { color: var(--ph-text); background: var(--ph-bg-soft); }
.ph-nav-actions { display: flex; align-items: center; margin-left: 12px; }

/* ---------- Botões ---------- */

.ph-btn {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 50px; padding: 0 26px; border-radius: var(--ph-radius-sm); border: 1px solid transparent;
  font-weight: 700; font-size: 14.5px; text-decoration: none; white-space: nowrap;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, color 0.18s ease;
}
.ph-btn-primary { background: linear-gradient(135deg, var(--ph-brand) 0%, var(--ph-cyan) 100%); color: #ffffff; box-shadow: 0 1px 2px rgba(37, 99, 235, 0.1), 0 10px 24px -12px rgba(37, 99, 235, 0.55); }
.ph-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 4px 10px rgba(37, 99, 235, 0.16), 0 18px 32px -14px rgba(37, 99, 235, 0.55); filter: brightness(1.05); }
.ph-btn-primary::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.35) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform 0.55s ease;
}
.ph-btn-primary:hover::before { transform: translateX(120%); }
.ph-btn-primary > * { position: relative; z-index: 2; }
.ph-btn-arrow { transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1); }
.ph-btn:hover .ph-btn-arrow { transform: translateX(3px); }

.ph-btn-secondary { background: #ffffff; color: var(--ph-text); border-color: #d0d5dd; }
.ph-btn-secondary:hover { background: var(--ph-bg-soft); border-color: #98a2b3; transform: translateY(-2px); }
.ph-btn-ghost { background: transparent; color: var(--ph-text-2); border-color: transparent; height: 44px; padding: 0 18px; }
.ph-btn-ghost:hover { background: var(--ph-bg-soft); color: var(--ph-text); }
.ph-btn-sm { height: 42px; padding: 0 18px; font-size: 13.5px; }

/* ---------- Reveal on scroll ---------- */

html.js-anim .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1); transition-delay: var(--reveal-delay, 0ms); }
html.js-anim .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Hero ---------- */

.ph-hero { padding: calc(var(--ph-header-h) + 64px) 0 88px; position: relative; overflow: hidden; }
.ph-hero-glow { position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 12% 15%, rgba(37, 99, 235, 0.09), transparent 45%),
              radial-gradient(circle at 88% 8%, rgba(14, 165, 233, 0.10), transparent 42%);
}
.ph-hero-grid-bg {
  position: absolute; inset: 0; top: 0; height: 640px; pointer-events: none;
  background-image: linear-gradient(to right, rgba(16, 24, 40, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(16, 24, 40, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, black 40%, transparent 100%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, black 40%, transparent 100%);
}
.ph-hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.ph-eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px;
  padding: 7px 14px; border-radius: 999px; background: var(--ph-brand-soft); border: 1px solid var(--ph-brand-border);
  color: var(--ph-brand-hover); font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
}
.ph-hero h1 { font-size: clamp(48px, 5vw, 72px); line-height: 1.02; letter-spacing: -0.025em; font-weight: 800; }
.ph-hero h1 .ph-gradient-text {
  background: linear-gradient(90deg, var(--ph-brand) 0%, var(--ph-cyan) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.ph-hero-subtitle { margin: 22px 0 32px; max-width: 540px; color: var(--ph-text-2); font-size: 18px; line-height: 1.7; }
.ph-hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.ph-hero-trust { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 34px; font-size: 13px; font-weight: 600; color: var(--ph-text-muted); }
.ph-hero-trust span { display: inline-flex; align-items: center; gap: 7px; }
.ph-hero-trust svg { color: var(--ph-brand); flex-shrink: 0; }

/* ---------- Mockup do hero ---------- */

.ph-hero-visual { position: relative; display: flex; justify-content: center; }
.ph-mock-wrap { position: relative; width: min(430px, 100%); }
.ph-mock-panel {
  position: relative; background: var(--ph-surface); border: 1px solid var(--ph-border);
  border-radius: var(--ph-radius-lg); padding: 22px; box-shadow: 0 30px 60px -28px rgba(16, 24, 40, 0.26);
  transform: rotate(-1deg);
}
.ph-mock-dots { display: flex; gap: 6px; }
.ph-mock-dots span { width: 10px; height: 10px; border-radius: 50%; }
.ph-mock-dots span:nth-child(1) { background: #f04438; }
.ph-mock-dots span:nth-child(2) { background: #f79009; }
.ph-mock-dots span:nth-child(3) { background: #12b76a; }
.ph-mock-head { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; }
.ph-mock-head strong { display: block; font-size: 13px; }
.ph-mock-head p { margin: 2px 0 0; font-size: 12px; color: var(--ph-text-muted); }
.ph-mock-icon {
  width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--ph-brand), var(--ph-cyan)); color: #fff;
}
.ph-mock-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 20px; }
.ph-mock-stat { border: 1px solid var(--ph-border-soft); background: var(--ph-bg-soft); border-radius: 14px; padding: 12px; }
.ph-mock-stat span { display: block; font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.02em; color: var(--ph-text-muted); }
.ph-mock-stat strong { display: block; margin-top: 4px; font-size: 21px; }
.ph-mock-caption { margin: 16px 0 0; text-align: center; font-size: 11px; color: #98a2b3; }

.ph-mock-float {
  position: absolute; width: 180px; background: var(--ph-surface); border: 1px solid var(--ph-border);
  border-radius: var(--ph-radius); padding: 14px; box-shadow: 0 14px 30px -14px rgba(16, 24, 40, 0.22);
  animation: phFloat 6s ease-in-out infinite;
}
.ph-mock-float.is-top { top: -100px; left: 6px; width: 184px; --r: 2deg; }
.ph-mock-float.is-right { bottom: -92px; right: 6px; width: 182px; --r: -1.5deg; animation-delay: 0.6s; }
.ph-mock-float.is-left { bottom: -88px; left: 6px; width: 168px; --r: 1.5deg; animation-delay: 1.2s; }
.ph-mock-float .ph-mock-float-title { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ph-brand); margin: 0 0 6px; }
.ph-mock-float p { margin: 0; font-size: 12px; }
.ph-mock-float .ph-mock-float-sub { margin-top: 4px; color: var(--ph-text-muted); font-size: 11px; }
@keyframes phFloat { 0%, 100% { transform: translateY(0) rotate(var(--r, 0deg)); } 50% { transform: translateY(-8px) rotate(var(--r, 0deg)); } }
@media (prefers-reduced-motion: reduce) { .ph-mock-float { animation: none; } }

/* ---------- Seções genéricas ---------- */

.ph-section { padding: 112px 0; }
.ph-section-alt { background: var(--ph-bg-soft); }
.ph-section-head { max-width: 660px; margin: 0 auto 52px; text-align: center; }
.ph-section-head.is-left { margin-left: 0; text-align: left; max-width: none; }
.ph-section-head h2 { font-size: clamp(36px, 4vw, 52px); letter-spacing: -0.02em; line-height: 1.08; }
.ph-section-head p { margin-top: 16px; color: var(--ph-text-muted); font-size: 17px; line-height: 1.7; }
.ph-eyebrow-label { display: block; margin-bottom: 12px; color: var(--ph-brand); font-size: 12.5px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }

/* ---------- Ecossistema / soluções (bento) ---------- */

.ph-bento { display: grid; grid-template-columns: repeat(2, 1fr); grid-auto-rows: 1fr; gap: 20px; }

.ph-product-card {
  --accent: var(--ph-brand); --accent-soft: var(--ph-brand-soft);
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; padding: 30px; min-height: 240px;
  background: var(--ph-surface); border: 1px solid var(--ph-border); border-radius: var(--ph-radius-lg);
  text-decoration: none; color: var(--ph-text); cursor: pointer;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.22s ease, border-color 0.22s ease;
}
.ph-product-card:hover, .ph-product-card.is-active { transform: translateY(-5px); border-color: color-mix(in srgb, var(--accent) 45%, var(--ph-border)); box-shadow: 0 28px 48px -26px rgba(16, 24, 40, 0.22); }
.ph-product-card::after {
  content: ""; position: absolute; inset: 0; z-index: 0; opacity: 0; transition: opacity 0.25s ease;
  background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 7%, transparent), transparent 60%);
}
.ph-product-card:hover::after, .ph-product-card.is-active::after { opacity: 1; }
.ph-product-card > * { position: relative; z-index: 1; }

.ph-product-spot { position: relative; }
.ph-product-spot::before {
  content: ""; position: absolute; inset: 0; z-index: 0; border-radius: inherit; pointer-events: none;
  opacity: 0; transition: opacity 0.3s ease;
  background: radial-gradient(240px circle at var(--spot-x, 50%) var(--spot-y, 50%), color-mix(in srgb, var(--accent) 8%, transparent), transparent 70%);
}
.ph-product-spot[data-spot="true"]::before { opacity: 1; }

.ph-product-icon {
  display: flex; align-items: center; justify-content: center; width: 52px; height: 52px;
  border-radius: 15px; background: var(--accent-soft); color: var(--accent); font-size: 20px; font-weight: 800;
  transition: transform 0.22s ease;
}
.ph-product-card:hover .ph-product-icon, .ph-product-card.is-active .ph-product-icon { transform: scale(1.06); }
.ph-product-category { display: block; margin: 18px 0 4px; font-size: 11.5px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.ph-product-card h3 { font-size: 24px; margin-bottom: 8px; }
.ph-product-card p { margin: 0; color: var(--ph-text-2); font-size: 14.5px; line-height: 1.6; flex-grow: 1; }
.ph-product-cta { display: inline-flex; align-items: center; gap: 6px; margin-top: 20px; font-weight: 700; font-size: 14px; color: var(--accent); }
.ph-product-cta svg { transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1); }
.ph-product-card:hover .ph-product-cta svg, .ph-product-card.is-active .ph-product-cta svg { transform: translateX(3px); }
.ph-product-soon { display: inline-block; margin-top: 20px; padding: 4px 11px; border-radius: 999px; background: var(--ph-bg-muted); color: var(--ph-text-muted); font-size: 11.5px; font-weight: 700; }

.ph-product-arco { --accent: #b45309; --accent-soft: #fef3e2; }
.ph-product-auto { --accent: #ff7418; --accent-soft: #fff3ea; }
.ph-product-nurse { --accent: #0d9488; --accent-soft: #f0fdfa; }
.ph-product-pref { --accent: #2563eb; --accent-soft: #eff6ff; }

/* ---------- Painel de detalhe do produto selecionado ---------- */

.ph-product-detail {
  margin-top: 24px; padding: 0; max-height: 0; overflow: hidden; opacity: 0;
  transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease, padding 0.35s ease;
  border-radius: var(--ph-radius-lg); border: 1px solid var(--ph-border-soft); background: var(--ph-bg-soft);
}
.ph-product-detail.is-open { max-height: 260px; opacity: 1; padding: 28px 32px; }
.ph-product-detail-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; justify-content: space-between; }
.ph-product-detail h4 { font-size: 20px; margin-bottom: 4px; }
.ph-product-detail .ph-detail-tag { font-size: 13.5px; color: var(--ph-text-2); }
.ph-detail-list { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; }
.ph-detail-list li { display: flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 600; color: var(--ph-text-2); }
.ph-detail-list svg { color: var(--ph-detail-accent, var(--ph-brand)); flex-shrink: 0; }

/* ---------- Vantagens (antes / depois) ---------- */

.ph-compare-grid { display: grid; grid-template-columns: 1fr auto 1fr; gap: 24px; align-items: center; }
.ph-compare-card { padding: 30px; border-radius: var(--ph-radius-lg); border: 1px solid var(--ph-border-soft); background: var(--ph-surface); }
.ph-compare-card.is-positive { border-color: var(--ph-brand-border); }
.ph-compare-tag { font-size: 12px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ph-text-muted); }
.ph-compare-card.is-positive .ph-compare-tag { color: var(--ph-brand); }
.ph-compare-list { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.ph-compare-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 14.5px; color: var(--ph-text-2); }
.ph-compare-icon { flex-shrink: 0; width: 20px; height: 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.ph-compare-card:not(.is-positive) .ph-compare-icon { background: #fef3f2; color: #f04438; }
.ph-compare-card.is-positive .ph-compare-icon { background: var(--ph-brand-soft); color: var(--ph-brand); }
.ph-compare-arrow { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: var(--ph-bg-soft); color: var(--ph-brand); }

/* ---------- Como funciona ---------- */

.ph-steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 20px; }
.ph-steps-line { position: absolute; left: 12.5%; right: 12.5%; top: 24px; height: 2px; background: var(--ph-border); }
.ph-steps-line span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--ph-brand), var(--ph-cyan)); transition: width 1s cubic-bezier(0.16, 1, 0.3, 1); }
.ph-steps-line.is-visible span { width: 100%; }
.ph-step-num {
  position: relative; z-index: 1; display: flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 50%; background: var(--ph-surface); border: 1px solid var(--ph-border);
  font-weight: 800; color: var(--ph-brand); font-size: 15px;
}
.ph-step-card { margin-top: 18px; padding: 18px; border-radius: var(--ph-radius); border: 1px solid var(--ph-border-soft); background: var(--ph-surface); }
.ph-step-card h3 { font-size: 15.5px; margin-bottom: 8px; }
.ph-step-card p { margin: 0; font-size: 13.5px; color: var(--ph-text-2); line-height: 1.6; }

/* ---------- Mockup grande de produto ---------- */

.ph-window {
  max-width: 1000px; margin: 0 auto; border-radius: var(--ph-radius-lg); overflow: hidden;
  border: 1px solid var(--ph-border-soft); background: var(--ph-surface); box-shadow: 0 34px 64px -32px rgba(16, 24, 40, 0.24);
}
.ph-window-bar { display: flex; align-items: center; gap: 10px; padding: 14px 20px; background: var(--ph-bg-soft); border-bottom: 1px solid var(--ph-border-soft); }
.ph-window-bar span:not(.ph-window-title) { width: 10px; height: 10px; border-radius: 50%; }
.ph-window-bar span:nth-child(1) { background: #f04438; }
.ph-window-bar span:nth-child(2) { background: #f79009; }
.ph-window-bar span:nth-child(3) { background: #12b76a; }
.ph-window-title { margin-left: 6px; font-size: 12.5px; font-weight: 700; color: var(--ph-text-2); }
.ph-window-body { display: grid; grid-template-columns: 210px 1fr; min-height: 360px; }
.ph-window-nav { display: flex; flex-direction: column; gap: 4px; padding: 16px; border-right: 1px solid var(--ph-border-soft); }
.ph-window-tab {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; border: 0;
  background: transparent; color: var(--ph-text-2); font-size: 13.5px; font-weight: 600; text-align: left;
}
.ph-window-tab:hover { background: var(--ph-bg-soft); }
.ph-window-tab.is-active { background: var(--ph-brand-soft); color: var(--ph-brand-hover); }
.ph-window-content { padding: 26px; }
.ph-window-panel { display: none; }
.ph-window-panel.is-active { display: block; }
.ph-window-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.ph-window-stat { border: 1px solid var(--ph-border-soft); background: var(--ph-bg-soft); border-radius: 14px; padding: 16px; }
.ph-window-stat span { display: block; font-size: 11px; font-weight: 600; text-transform: uppercase; color: var(--ph-text-muted); }
.ph-window-stat strong { display: block; margin-top: 6px; font-size: 26px; }
.ph-window-chart { margin-top: 18px; border: 1px solid var(--ph-border-soft); border-radius: 14px; padding: 18px; }
.ph-window-chart p { margin: 0 0 14px; font-size: 12.5px; font-weight: 600; color: var(--ph-text-2); }
.ph-window-bars { display: flex; align-items: flex-end; gap: 10px; height: 120px; }
.ph-window-bars span { flex: 1; border-radius: 6px 6px 0 0; background: linear-gradient(180deg, var(--ph-brand), var(--ph-cyan)); }
.ph-window-row { display: flex; align-items: center; gap: 12px; border: 1px solid var(--ph-border-soft); border-radius: 12px; padding: 13px; margin-bottom: 10px; }
.ph-window-row .ph-dot { width: 4px; height: 32px; border-radius: 999px; flex-shrink: 0; }
.ph-window-row strong { display: block; font-size: 13.5px; }
.ph-window-row span { display: block; font-size: 11.5px; color: var(--ph-text-muted); }
.ph-window-caption { text-align: center; margin-top: 16px; font-size: 12.5px; color: #98a2b3; }

/* ---------- Automação ---------- */

.ph-flow { display: flex; align-items: center; justify-content: space-between; max-width: 1040px; margin: 20px auto 0; }
.ph-flow-node { display: flex; flex-direction: column; align-items: center; gap: 10px; flex: 0 0 auto; width: 118px; text-align: center; }
.ph-flow-icon { display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 16px; border: 1px solid var(--ph-border); background: var(--ph-surface); color: var(--ph-brand); }
.ph-flow-node.is-core .ph-flow-icon { background: linear-gradient(135deg, var(--ph-brand), var(--ph-cyan)); color: #fff; border-color: transparent; }
.ph-flow-node span { font-size: 12.5px; font-weight: 700; color: var(--ph-text-2); }
.ph-flow-connector { position: relative; flex: 1 1 auto; height: 2px; background: var(--ph-border); margin: 0 4px; align-self: center; margin-top: -30px; overflow: visible; }
.ph-flow-dot { position: absolute; top: 50%; left: 0; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: var(--ph-brand); box-shadow: 0 0 0 4px var(--ph-brand-soft); animation: phFlowMove 2.6s ease-in-out infinite; }
@keyframes phFlowMove { 0% { left: 0; opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } 100% { left: 100%; opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .ph-flow-dot { animation: none; opacity: 1; left: 50%; } }

/* ---------- CTA final ---------- */

.ph-final { background: #101828; padding: 100px 0; position: relative; overflow: hidden; }
.ph-final-glow { position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 18% 20%, rgba(37, 99, 235, 0.22), transparent 45%),
              radial-gradient(circle at 84% 80%, rgba(14, 165, 233, 0.18), transparent 45%);
}
.ph-final-inner { position: relative; max-width: 680px; margin: 0 auto; text-align: center; }
.ph-final h2 { color: #fff; font-size: clamp(30px, 3.8vw, 44px); letter-spacing: -0.02em; }
.ph-final p { margin: 16px 0 34px; color: #98a2b3; font-size: 17px; }
.ph-final .ph-hero-actions { justify-content: center; }
.ph-final .ph-btn-secondary { background: transparent; color: #fff; border-color: #344054; }
.ph-final .ph-btn-secondary:hover { border-color: var(--ph-brand); color: var(--ph-brand); background: rgba(255, 255, 255, 0.04); }

/* ---------- Footer ---------- */

.ph-footer { border-top: 1px solid var(--ph-border-soft); background: var(--ph-bg-main); padding: 64px 0 0; }
.ph-footer-grid { display: grid; grid-template-columns: 1.4fr repeat(2, 1fr); gap: 40px; padding-bottom: 44px; }
.ph-footer-desc { margin: 14px 0 0; color: var(--ph-text-muted); font-size: 14px; max-width: 300px; }
.ph-footer-col h4 { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ph-text-muted); margin-bottom: 16px; }
.ph-footer-col a, .ph-footer-col p { display: block; margin-bottom: 10px; color: var(--ph-text-2); text-decoration: none; font-size: 14.5px; }
.ph-footer-col a:hover { color: var(--ph-brand); }
.ph-footer-bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 0;
  border-top: 1px solid var(--ph-border-soft); color: var(--ph-text-muted); font-size: 13px;
}
.ph-footer-bottom nav { display: flex; gap: 18px; }
.ph-footer-bottom a { color: inherit; text-decoration: none; }
.ph-footer-bottom a:hover { color: var(--ph-brand); }
.ph-dev-corner { opacity: 0.55; }
.ph-dev-corner:hover { opacity: 1; }

/* ---------- Responsivo ---------- */

@media (max-width: 980px) {
  .ph-hero-grid { grid-template-columns: 1fr; }
  .ph-hero-visual { margin-top: 40px; }
  .ph-footer-grid { grid-template-columns: 1fr 1fr; }
  .ph-window-body { grid-template-columns: 1fr; }
  .ph-window-nav { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--ph-border-soft); }
  .ph-window-tab { white-space: nowrap; }
  .ph-steps { grid-template-columns: repeat(2, 1fr); }
  .ph-steps-line { display: none; }
  .ph-compare-grid { grid-template-columns: 1fr; }
  .ph-compare-arrow { margin: 0 auto; transform: rotate(90deg); }
  .ph-mock-float { display: none; }
  .ph-flow { flex-wrap: wrap; justify-content: center; gap: 28px 16px; }
  .ph-flow-connector { display: none; }
}

@media (max-width: 720px) {
  .ph-nav-toggle { display: flex; }
  .ph-nav {
    position: fixed; top: var(--ph-header-h); left: 0; right: 0; bottom: 0; z-index: 90;
    flex-direction: column; align-items: flex-start; gap: 4px; padding: 20px 24px;
    background: #ffffff; border-top: 1px solid var(--ph-border-soft);
    transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity 0.18s, transform 0.18s;
  }
  .ph-nav.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .ph-nav a { padding: 12px 10px; width: 100%; border-bottom: 1px solid var(--ph-border-soft); border-radius: 0; }
  .ph-nav-actions { width: 100%; padding-top: 14px; margin-left: 0; }
  .ph-nav-actions .ph-btn { width: 100%; }
  .ph-nav-backdrop { position: fixed; inset: 0; top: var(--ph-header-h); background: rgba(16, 24, 40, 0.4); z-index: 80; }

  .ph-hero { padding: calc(var(--ph-header-h) + 40px) 0 64px; }
  .ph-section { padding: 72px 0; }
  .ph-bento { grid-template-columns: 1fr; }
  .ph-steps { grid-template-columns: 1fr; }
  .ph-footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .ph-footer-bottom { flex-direction: column; align-items: flex-start; }
  .ph-window-stats { grid-template-columns: 1fr; }
  .ph-product-detail-inner { flex-direction: column; align-items: flex-start; }
}
