/* ═══════════════════════════════════════════════════════════
   FT PREVIEWS — Stylesheet
   Ferramenta Gratuita · FT Arquitetura · Fransergio Tavares
   ═══════════════════════════════════════════════════════════ */

/* ── TOKENS (idênticos ao site principal) ────────────────── */
:root {
  --bg:      #FAF9F6;
  --surface: #F3F1EC;
  --dark:    #1A1A18;
  --dark2:   #2C2C29;
  --text:    #3A3A36;
  --muted:   #8C8C87;
  --accent:  #B8955A;
  --border:  #E2DDD5;
  --line:    #D6D1C8;

  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans:  'Inter', system-ui, sans-serif;

  --max:  1120px;
  --r:    4px;
  --ease: cubic-bezier(.4,0,.2,1);

  /* Previews-specific */
  --pv-nav-h: var(--header-h);
}

/* ── RESET ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

[data-bg-zoom] {
  --bg-zoom-scale: 1;
}
body.menu-is-open { overflow: hidden; }
img  { display: block; max-width: 100%; object-fit: cover; }
a    { text-decoration: none; color: inherit; }
ul   { list-style: none; }
button { cursor: pointer; font-family: var(--sans); }

/* ── UTILITIES ──────────────────────────────────────────────── */
.pv-container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px;
}
.pv-eyebrow {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

/* ════════════════════════════════════════════════════════════
   MENU DRAWER E NAV FLUTUANTE
   ════════════════════════════════════════════════════════════ */
.menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 398;
  background: rgba(0,0,0,0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease);
}
.menu-backdrop.open {
  opacity: 1;
  pointer-events: all;
}
.menu-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(520px, 92vw);
  z-index: 399;
  background: #0a0a08;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 80px 52px 48px;
  transform: translateX(100%);
  transition: transform 0.45s var(--ease);
  box-shadow: -8px 0 48px rgba(0,0,0,0.4);
}
.menu-drawer.open { transform: translateX(0); }
.menu-close {
  position: absolute;
  top: 22px;
  left: 24px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  z-index: 10;
}
.menu-close span {
  display: block;
  width: 20px;
  height: 1px;
  background: rgba(255,255,255,0.5);
  transition: background 0.2s;
  position: absolute;
}
.menu-close:hover span { background: rgba(255,255,255,0.9); }
.menu-close span:first-child { transform: rotate(45deg); }
.menu-close span:last-child  { transform: rotate(-45deg); }
.menu-nav {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.menu-nav a {
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 300;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  transition: color 0.2s, padding-left 0.2s;
  line-height: 1;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  display: block;
}
.menu-nav a:first-child { border-top: 1px solid rgba(255,255,255,0.06); }
.menu-nav a:hover { color: #fff; padding-left: 8px; }
.menu-nav a.is-active { color: var(--accent); }
.menu-nav-previews {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
}
.menu-nav-badge {
  font-size: 0.48rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid rgba(184,149,90,0.55);
  border-radius: 999px;
  padding: 3px 8px;
  color: var(--accent);
}
.menu-footer {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.menu-cta {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: color 0.2s;
}
.menu-cta:hover { color: #fff; }
.menu-cta-arrow { transition: transform 0.2s; }
.menu-cta:hover .menu-cta-arrow { transform: translateX(5px); }
.menu-social { display: flex; gap: 18px; }
.menu-social a {
  font-size: 0.58rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.25);
  transition: color 0.2s;
}
.menu-social a:hover { color: rgba(255,255,255,0.7); }

#floatnav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 310;
  height: var(--pv-nav-h);
  background: #050504;
  border-bottom: 1px solid rgba(184,149,90,0.35);
  display: flex;
  align-items: stretch;
  opacity: 1;
  pointer-events: auto;
}
.floatnav-items {
  flex: 1;
  display: flex;
  align-items: stretch;
}
.floatnav-item {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 0 18px;
  border-right: 1px solid rgba(255,255,255,0.06);
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.42);
  white-space: nowrap;
  transition: color 0.2s, background 0.2s;
}
.floatnav-item:hover,
.floatnav-item.is-active {
  color: var(--accent);
  background: rgba(255,255,255,0.02);
}
.floatnav-burger {
  width: 68px;
  flex: 0 0 68px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: transparent;
  border: none;
  cursor: pointer;
}
.floatnav-burger span {
  display: block;
  width: 26px;
  height: 1px;
  background: rgba(255,255,255,0.7);
  transition: background 0.2s, transform 0.2s;
}
.floatnav-burger:hover span { background: #fff; }

/* ════════════════════════════════════════════════════════════
   HERO
   ════════════════════════════════════════════════════════════ */
#pv-hero {
  position: relative;
  background: var(--dark);
  padding: 136px 0 80px;
  overflow: hidden;
}
.pv-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 40%, rgba(184,149,90,0.08) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 10% 80%, rgba(184,149,90,0.05) 0%, transparent 50%);
  pointer-events: none;
  transform-origin: center;
  will-change: transform;
}
/* Subtle grid texture */
.pv-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 64px 64px;
}
.pv-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 700px;
}
.pv-hero-title {
  font-family: var(--serif);
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 300;
  line-height: 1.05;
  color: #fff;
  letter-spacing: -0.01em;
  margin-bottom: 24px;
}
.pv-hero-title em {
  font-style: italic;
  color: rgba(255,255,255,0.45);
  display: block;
}
.pv-hero-sub {
  font-size: 0.95rem;
  line-height: 1.8;
  color: rgba(255,255,255,0.45);
  max-width: 540px;
  margin-bottom: 36px;
}
.pv-hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.pv-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 7px 14px;
  border-radius: 3px;
}
.pv-chip svg {
  width: 13px; height: 13px;
  stroke: var(--accent); fill: none;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
  flex-shrink: 0;
}

/* ════════════════════════════════════════════════════════════
   STEPPER
   ════════════════════════════════════════════════════════════ */
.pv-stepper {
  background: var(--dark2);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 0 0 0;
  position: sticky;
  top: var(--pv-nav-h);
  z-index: 100;
}
.pv-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 60px;
  gap: 0;
}
.pv-step {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 24px;
  opacity: 0.35;
  transition: opacity 0.3s var(--ease);
}
.pv-step.active  { opacity: 1; }
.pv-step.done    { opacity: 0.7; }

.pv-step-circle {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
  position: relative;
  flex-shrink: 0;
  transition: border-color 0.3s, background 0.3s;
}
.pv-step.active .pv-step-circle {
  border-color: var(--accent);
  background: rgba(184,149,90,0.12);
}
.pv-step.done .pv-step-circle {
  border-color: var(--accent);
  background: var(--accent);
}
.pv-step-num {
  font-family: var(--serif);
  font-size: 0.75rem;
  color: rgba(255,255,255,0.7);
  line-height: 1;
  transition: opacity 0.2s;
}
.pv-step.done .pv-step-num { display: none; }
.pv-step-check {
  width: 12px; height: 12px;
  stroke: #fff; fill: none;
  stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round;
  display: none;
}
.pv-step.done .pv-step-check { display: block; }
.pv-step-label {
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  white-space: nowrap;
}
.pv-step.active .pv-step-label { color: #fff; }

.pv-step-connector {
  flex: 0 0 48px;
  display: flex;
  align-items: center;
}
.pv-connector-line {
  width: 100%;
  height: 1px;
  background: rgba(255,255,255,0.1);
  position: relative;
  overflow: hidden;
}
.pv-connector-line::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
}
.pv-step.done + .pv-step-connector .pv-connector-line::after {
  transform: scaleX(1);
}

/* ════════════════════════════════════════════════════════════
   STEP SECTIONS
   ════════════════════════════════════════════════════════════ */
.pv-step-section {
  padding: 80px 0 96px;
}
.pv-step-header {
  max-width: 600px;
  margin-bottom: 56px;
}
.pv-step-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300;
  color: var(--dark);
  line-height: 1.1;
  margin-bottom: 14px;
}
.pv-step-desc {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.8;
}

/* ── Buttons ──────────────────────────────────────────────── */
.pv-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: none;
  border-radius: var(--r);
  cursor: pointer;
  transition: all 0.25s var(--ease);
  text-decoration: none;
  white-space: nowrap;
}
.pv-btn svg {
  width: 15px; height: 15px;
  stroke: currentColor; fill: none;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  flex-shrink: 0;
}
.pv-btn-primary {
  background: var(--dark);
  color: #fff;
}
.pv-btn-primary:hover:not(:disabled) {
  background: #000;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}
.pv-btn-primary:disabled {
  opacity: 0.38;
  cursor: not-allowed;
}
.pv-btn-ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
}
.pv-btn-ghost:hover {
  background: var(--surface);
  color: var(--dark);
  border-color: var(--dark);
}
.pv-btn-whatsapp {
  background: #25D366;
  color: #fff;
}
.pv-btn-whatsapp:hover {
  background: #1da851;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37,211,102,0.3);
}
.pv-btn-whatsapp svg {
  width: 18px; height: 18px;
  fill: currentColor; stroke: none;
}
.pv-btn-xl {
  padding: 18px 36px;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
}
.pv-btn-xl svg { width: 18px; height: 18px; }

/* ── Step Footer / Actions ─────────────────────────────────── */
.pv-step-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.pv-step-footer-2col {
  justify-content: space-between;
}
.pv-step-tip {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.6;
  max-width: 440px;
}
.pv-step-tip svg {
  width: 14px; height: 14px;
  stroke: var(--accent); fill: none;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
  flex-shrink: 0; margin-top: 2px;
}

/* ════════════════════════════════════════════════════════════
   STEP 1 — UPLOAD ZONE
   ════════════════════════════════════════════════════════════ */
.pv-upload-area {
  position: relative;
  border: 1px dashed var(--line);
  border-radius: 6px;
  background: var(--surface);
  min-height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
  overflow: hidden;
}
.pv-upload-area:hover,
.pv-upload-area:focus-within {
  border-color: var(--accent);
  background: rgba(184,149,90,0.04);
  box-shadow: 0 0 0 4px rgba(184,149,90,0.08);
}
.pv-upload-area.dragover {
  border-color: var(--accent);
  background: rgba(184,149,90,0.08);
  box-shadow: 0 0 0 6px rgba(184,149,90,0.12);
}
.pv-upload-area.upload-error {
  border-color: #C0392B;
  background: rgba(192,57,43,0.03);
}
.pv-upload-area.has-image {
  min-height: auto;
  cursor: default;
  background: var(--dark);
  border-color: transparent;
}
/* Input de arquivo: visualmente oculto, mas acessível.
   NÃO usar como overlay de área inteira — isso causava abertura
   dupla do seletor (clique nativo + clique disparado por JS). */
#pv-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Empty state */
.pv-upload-empty {
  text-align: center;
  padding: 56px 40px;
  z-index: 1;
}
.pv-upload-icon {
  width: 64px; height: 64px;
  margin: 0 auto 24px;
  color: var(--line);
  transition: color 0.25s;
}
.pv-upload-area:hover .pv-upload-icon { color: var(--accent); }
.pv-upload-icon svg { width: 100%; height: 100%; stroke: currentColor; fill: none; }
.pv-upload-main {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--dark);
  margin-bottom: 6px;
}
.pv-upload-or {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 12px;
}
.pv-upload-link {
  color: var(--accent);
  cursor: pointer;
  border-bottom: 1px solid rgba(184,149,90,0.3);
  transition: border-color 0.2s;
}
.pv-upload-link:hover { border-color: var(--accent); }
.pv-upload-hint {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--line);
  text-transform: uppercase;
}
.pv-upload-status {
  min-height: 24px;
  margin-top: 14px;
  font-size: 0.78rem;
  color: var(--muted);
}
.pv-upload-status[data-tone="success"] {
  color: #2F8F57;
}
.pv-upload-status[data-tone="error"] {
  color: #C0392B;
}

/* Filled state */
.pv-upload-filled {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: 100%;
  z-index: 1;
  pointer-events: none;
}
.pv-upload-img-wrap {
  position: relative;
  width: 100%;
  max-height: 420px;
  overflow: hidden;
}
.pv-preview-img {
  width: 100%;
  height: 100%;
  max-height: 420px;
  object-fit: cover;
  display: block;
  filter: brightness(0.88);
}
.pv-remove-btn {
  position: absolute;
  top: 16px; right: 16px;
  width: 36px; height: 36px;
  background: rgba(26,26,24,0.85);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  pointer-events: all;
  transition: background 0.2s;
  z-index: 5;
}
.pv-remove-btn svg {
  width: 14px; height: 14px;
  stroke: rgba(255,255,255,0.8); fill: none;
  stroke-width: 2; stroke-linecap: round;
}
.pv-remove-btn:hover { background: rgba(26,26,24,1); }

.pv-upload-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: rgba(26,26,24,0.88);
  width: 100%;
  pointer-events: none;
}
.pv-upload-meta svg {
  width: 13px; height: 13px;
  stroke: var(--accent); fill: none;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
  flex-shrink: 0;
}
.pv-upload-meta span {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.5);
  font-family: var(--sans);
}
.pv-upload-ready {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(26,26,24,0.96);
  width: 100%;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: #5fde8a;
  font-weight: 500;
  pointer-events: none;
}
.pv-upload-ready svg {
  width: 13px; height: 13px;
  stroke: currentColor; fill: none;
  stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round;
}

/* ════════════════════════════════════════════════════════════
   STEP 2 — STYLE GRID
   ════════════════════════════════════════════════════════════ */
.pv-styles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.pv-style-card {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
  display: flex;
  flex-direction: column;
  padding: 0;
}
.pv-style-card:hover {
  border-color: var(--accent);
  box-shadow: 0 6px 24px rgba(0,0,0,0.1);
  transform: translateY(-3px);
}
.pv-style-card.selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(184,149,90,0.15), 0 8px 32px rgba(0,0,0,0.12);
}

/* Swatch — com ou sem foto do cliente */
.pv-style-swatch {
  height: 140px;
  width: 100%;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  transition: height 0.3s var(--ease);
}
/* Vigneta inferior para transição suave ao conteúdo do card */
.pv-style-swatch::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 35%, rgba(0,0,0,0.32) 100%);
  z-index: 2;
  pointer-events: none;
}
/* Overlay de cor do estilo (fica sobre a foto quando há foto) */
.pv-swatch-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  transition: opacity 0.25s;
}
/* Nome e número sobre o swatch */
.pv-swatch-label {
  position: absolute;
  bottom: 12px;
  left: 16px;
  z-index: 3;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.pv-swatch-num {
  font-family: var(--serif);
  font-size: 0.65rem;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.12em;
}
.pv-swatch-name {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 400;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
  line-height: 1.1;
}

/* Quando tem foto — a swatch fica um pouco maior para destacar o preview */
.pv-style-swatch.has-photo {
  height: 160px;
}
.pv-style-card:hover .pv-style-swatch.has-photo {
  height: 170px;
}

.pv-style-info {
  padding: 14px 20px 10px;
  flex: 1;
}
.pv-style-desc {
  font-size: 0.78rem;
  line-height: 1.6;
  color: var(--muted);
}

/* Color palette dots */
.pv-style-palette {
  display: flex;
  gap: 5px;
  padding: 10px 20px 16px;
  align-items: center;
}
.pv-palette-dot {
  width: 14px; height: 14px;
  border-radius: 50%;
  flex-shrink: 0;
  transition: transform 0.2s;
}
.pv-style-card:hover .pv-palette-dot { transform: scale(1.15); }

/* Selected checkmark */
.pv-style-check {
  position: absolute;
  top: 12px; right: 12px;
  width: 24px; height: 24px;
  background: var(--accent);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.2s, transform 0.25s var(--ease);
}
.pv-style-check svg {
  width: 12px; height: 12px;
  stroke: #fff; fill: none;
  stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round;
}
.pv-style-card.selected .pv-style-check {
  opacity: 1;
  transform: scale(1);
}

/* ════════════════════════════════════════════════════════════
   STEP 3 — PDF MOCKUP
   ════════════════════════════════════════════════════════════ */
.pv-pdf-stage {
  margin-bottom: 48px;
}
.pv-pdf-mockup {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  aspect-ratio: 297/210;
  background: var(--dark);
  border-radius: 4px;
  overflow: hidden;
  box-shadow:
    0 2px 0 1px rgba(255,255,255,0.05),
    0 24px 80px rgba(0,0,0,0.35),
    0 4px 16px rgba(0,0,0,0.2);
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(20px) scale(0.98);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
  position: relative;
}
.pv-pdf-mockup.revealed {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.pv-pdf-image {
  flex: 1;
  position: relative;
  overflow: hidden;
}
.pv-pdf-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.pv-pdf-overlay {
  position: absolute;
  inset: 0;
  mix-blend-mode: multiply;
  pointer-events: none;
}
.pv-pdf-vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 100% 100% at 50% 50%, transparent 30%, rgba(0,0,0,0.25) 100%),
    linear-gradient(to bottom, transparent 55%, rgba(26,26,24,0.55) 100%);
  pointer-events: none;
}

/* PDF footer bar */
.pv-pdf-bar {
  flex-shrink: 0;
  height: 23%;
  background: var(--dark);
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0 16px;
  border-top: 1px solid var(--accent);
  position: relative;
}
.pv-pdf-bar::before {
  content: '';
  position: absolute;
  top: -1px; left: 0;
  width: 100%; height: 1px;
  background: var(--accent);
  opacity: 0.5;
}

.pv-pdf-bar-logo {
  flex-shrink: 0;
  padding-right: 14px;
  border-right: 1px solid rgba(255,255,255,0.08);
  margin-right: 14px;
  display: flex;
  align-items: center;
}
.pv-pdf-logo-img {
  height: 34px;
  width: auto;
  object-fit: contain;
  opacity: 0.95;
}

.pv-pdf-bar-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-right: 14px;
  border-right: 1px solid rgba(255,255,255,0.06);
  margin-right: auto;
}
.pv-pdf-bar-eyebrow {
  font-size: 0.38rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
}
.pv-pdf-bar-style {
  font-family: var(--serif);
  font-size: 0.85rem;
  font-weight: 300;
  font-style: italic;
  color: #fff;
  white-space: nowrap;
}
.pv-pdf-bar-url {
  font-size: 0.38rem;
  color: rgba(255,255,255,0.3);
  letter-spacing: 0.06em;
}

.pv-pdf-bar-links {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 14px;
}
.pv-pdf-bar-link {
  font-size: 0.42rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}
.pv-pdf-bar-link:hover { color: #fff; }
.pv-pdf-bar-dot {
  color: rgba(255,255,255,0.2);
  font-size: 0.5rem;
}

.pv-pdf-bar-qr {
  flex-shrink: 0;
  padding-left: 12px;
  border-left: 1px solid rgba(255,255,255,0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}
.pv-pdf-bar-qr canvas {
  width: 42px !important;
  height: 42px !important;
  border-radius: 2px;
}
.pv-pdf-bar-qr span {
  font-size: 0.32rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.25);
}

.pv-pdf-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.05em;
  margin-top: 16px;
}
.pv-pdf-label svg {
  width: 13px; height: 13px;
  stroke: var(--accent); fill: none;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}

/* ── Download Actions ──────────────────────────────────────── */
.pv-download-block {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 72px;
}

/* ── 3 Service Paths ───────────────────────────────────────── */
.pv-paths {
  padding-top: 56px;
  border-top: 1px solid var(--border);
  margin-bottom: 56px;
}
.pv-paths-label {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 28px;
}
.pv-paths-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
.pv-path-card {
  background: var(--bg);
  padding: 36px 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-decoration: none;
  transition: background 0.25s;
  cursor: pointer;
}
.pv-path-card:hover { background: var(--dark); }
.pv-path-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}
.pv-path-num {
  font-family: var(--serif);
  font-size: 0.72rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  transition: color 0.25s;
}
.pv-path-arrow {
  width: 18px; height: 18px;
  stroke: var(--line); fill: none;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
  transition: stroke 0.25s, transform 0.25s;
}
.pv-path-card:hover .pv-path-arrow {
  stroke: rgba(255,255,255,0.4);
  transform: translateX(4px);
}
.pv-path-name {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--dark);
  line-height: 1.2;
  transition: color 0.25s;
}
.pv-path-desc {
  font-size: 0.8rem;
  line-height: 1.65;
  color: var(--muted);
  transition: color 0.25s;
}
.pv-path-card:hover .pv-path-name { color: rgba(255,255,255,0.9); }
.pv-path-card:hover .pv-path-num  { color: var(--accent); }
.pv-path-card:hover .pv-path-desc { color: rgba(255,255,255,0.45); }

/* ── Restart ───────────────────────────────────────────────── */
.pv-restart-block {
  display: flex;
  justify-content: center;
  padding: 8px 0 16px;
}
.pv-restart-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--muted);
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: var(--r);
  transition: color 0.2s, background 0.2s;
}
.pv-restart-btn svg {
  width: 13px; height: 13px;
  stroke: currentColor; fill: none;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.pv-restart-btn:hover { color: var(--dark); background: var(--surface); }

/* ── Spinner ───────────────────────────────────────────────── */
@keyframes pv-spin {
  to { transform: rotate(360deg); }
}
.pv-spin {
  animation: pv-spin 0.7s linear infinite;
  transform-origin: center;
}

/* ════════════════════════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════════════════════════ */
.pv-footer {
  background: var(--dark2);
  padding: 32px 0;
  border-top: 1px solid rgba(255,255,255,0.04);
}
.pv-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.pv-footer-logo-link { display: flex; align-items: center; }
.pv-footer-logo {
  height: 52px;
  width: auto;
  object-fit: contain;
  opacity: 0.85;
}
.pv-footer-copy {
  font-size: 0.73rem;
  color: rgba(255,255,255,0.2);
}
.pv-footer-copy a {
  color: rgba(255,255,255,0.35);
  transition: color 0.2s;
}
.pv-footer-copy a:hover { color: rgba(255,255,255,0.65); }
.pv-footer-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}
.pv-footer-nav a {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.3);
  transition: color 0.2s;
}
.pv-footer-nav a:hover { color: rgba(255,255,255,0.7); }
.pv-footer-nav span { color: rgba(255,255,255,0.12); font-size: 0.6rem; }

/* ════════════════════════════════════════════════════════════
   STEP TRANSITION ANIMATION
   ════════════════════════════════════════════════════════════ */
.pv-step-section {
  animation: pvFadeIn 0.4s ease both;
}
@keyframes pvFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ════════════════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════════════════ */
@media (max-width: 920px) {
  .pv-container { padding: 0 24px; }
  .menu-drawer { padding: 72px 36px 40px; width: min(440px, 92vw); }
  .floatnav-item {
    padding: 0 10px;
    font-size: 0.52rem;
    letter-spacing: 0.18em;
  }
  .pv-styles-grid { grid-template-columns: 1fr 1fr; }
  .pv-paths-grid { grid-template-columns: 1fr; }
  .pv-pdf-bar-links { display: none; }
}

@media (max-width: 640px) {
  #floatnav {
    justify-content: flex-end;
    background: transparent;
    border-bottom: none;
    pointer-events: none;
  }
  .floatnav-items { display: none; }
  .floatnav-burger {
    pointer-events: auto;
    margin: 10px 10px 0 0;
    width: 48px;
    height: 42px;
    flex: 0 0 48px;
    border: 1px solid rgba(255,255,255,0.42);
    border-radius: 4px;
    background: rgba(5,5,4,0.35);
    backdrop-filter: blur(8px);
  }
  .pv-hero-title { font-size: clamp(2.2rem, 8vw, 3.5rem); }
  .pv-hero-chips { gap: 8px; }
  .pv-chip { font-size: 0.65rem; padding: 6px 10px; }
  .pv-step-section { padding: 56px 0 72px; }
  .pv-step-header { margin-bottom: 36px; }
  .pv-styles-grid { grid-template-columns: 1fr; }
  .pv-upload-area { min-height: 260px; }
  .pv-step-footer { flex-direction: column; align-items: stretch; }
  .pv-step-footer .pv-btn { justify-content: center; }
  .pv-step-footer-2col { flex-direction: row; align-items: center; }
  .pv-download-block { flex-direction: column; align-items: stretch; }
  .pv-download-block .pv-btn { justify-content: center; }
  .pv-pdf-bar { padding: 0 10px; gap: 8px; }
  .pv-pdf-bar-logo { padding-right: 8px; margin-right: 8px; }
  .pv-pdf-logo-img { height: 24px; }
  .pv-pdf-bar-qr { display: none; }
  .pv-steps { gap: 0; }
  .pv-step { padding: 0 12px; }
  .pv-step-label { display: none; }
  .pv-step-connector { flex: 0 0 24px; }
  .pv-footer-inner { flex-direction: column; align-items: center; text-align: center; }
}

@media (max-width: 420px) {
  .pv-container { padding: 0 16px; }
  .pv-hero-sub { font-size: 0.88rem; }
  .pv-style-swatch { height: 100px; }
  .pv-style-swatch.has-photo { height: 120px; }
}

/* ════════════════════════════════════════════════════════════
   IDENTIDADE FT — integração com o site atual
   ════════════════════════════════════════════════════════════ */
:root {
  --bg: var(--paper);
  --surface: var(--white);
  --dark: var(--ink);
  --dark2: color-mix(in srgb, var(--ink) 90%, var(--sage));
  --text: var(--ink);
  --muted: color-mix(in srgb, var(--ink) 54%, transparent);
  --accent: var(--acid);
  --border: color-mix(in srgb, var(--ink) 16%, transparent);
  --line: color-mix(in srgb, var(--ink) 22%, transparent);
  --serif: var(--font-display);
  --sans: var(--font-body);
  --max: 1180px;
  --r: 0;
  --pv-nav-h: var(--header-h);
}

.previews-page { background: var(--paper); color: var(--ink); }
.pv-container { max-width: var(--max); padding-inline: var(--pad); }
.pv-tool-anchor { scroll-margin-top: var(--pv-nav-h); }
.pv-eyebrow { color: var(--acid); font-size: 10px; letter-spacing: .18em; }
.previews-page .site-menu-nav a[aria-current="page"] { color: var(--acid); }
.previews-page .site-menu-nav a[aria-current="page"]::after {
  content: "Grátis";
  margin-left: 10px;
  padding: 4px 7px;
  color: var(--ink);
  background: var(--acid);
  font: 500 7px/1 var(--font-body);
  letter-spacing: .1em;
  text-transform: uppercase;
}
.previews-page.menu-open .site-header {
  color: var(--white);
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

#floatnav {
  height: var(--pv-nav-h);
  background: color-mix(in srgb, var(--ink) 96%, transparent);
  border-bottom-color: rgba(255,255,255,.13);
  backdrop-filter: blur(16px);
}
.pv-site-brand {
  flex: 0 0 clamp(176px, 18vw, 265px);
  display: flex;
  align-items: center;
  padding: 0 var(--pad);
  color: var(--white);
  border-right: 1px solid rgba(255,255,255,.1);
}
.pv-site-brand .brand-lockup { display: flex; align-items: center; gap: 10px; }
.pv-site-brand .brand-lockup strong { font-family: var(--font-display); font-size: 28px; font-weight: 400; letter-spacing: -.06em; }
.pv-site-brand .brand-lockup i { width: 1px; height: 25px; background: rgba(255,255,255,.24); }
.pv-site-brand .brand-lockup small { max-width: 75px; font-size: 7px; line-height: 1.25; letter-spacing: .13em; text-transform: uppercase; }
.pv-site-brand .brand-logo-image { max-height: 42px; }
.floatnav-item {
  padding-inline: 13px;
  color: rgba(255,255,255,.56);
  font-size: 9px;
  letter-spacing: .1em;
  border-right-color: rgba(255,255,255,.08);
}
.floatnav-item:hover,
.floatnav-item.is-active { color: var(--white); background: rgba(255,255,255,.045); }
.floatnav-item.is-active { box-shadow: inset 0 -2px var(--acid); }
.floatnav-item.is-active span {
  margin-left: 8px;
  padding: 3px 6px;
  color: var(--ink);
  background: var(--acid);
  font-size: 7px;
  letter-spacing: .08em;
}
.floatnav-burger { border-left: 1px solid rgba(255,255,255,.08); }

.menu-drawer { background: var(--ink); box-shadow: -20px 0 80px rgba(0,0,0,.35); }
.menu-nav a { font-family: var(--font-display); font-size: clamp(24px, 4vh, 38px); letter-spacing: -.035em; text-transform: none; }
.menu-nav a.is-active { color: var(--acid); }
.menu-nav-badge { color: var(--acid); border-color: color-mix(in srgb, var(--acid) 55%, transparent); font-family: var(--font-body); }

#pv-hero {
  min-height: min(760px, 86svh);
  display: flex;
  align-items: flex-end;
  padding: calc(var(--pv-nav-h) + clamp(90px, 14vh, 150px)) 0 clamp(72px, 9vh, 110px);
  background: var(--ink);
}
.pv-hero-bg {
  opacity: .72;
  background:
    linear-gradient(90deg, transparent calc(50% - .5px), rgba(186,255,82,.16) 50%, transparent calc(50% + .5px)),
    linear-gradient(0deg, transparent calc(50% - .5px), rgba(186,255,82,.11) 50%, transparent calc(50% + .5px)),
    repeating-linear-gradient(0deg, transparent 0 79px, rgba(255,255,255,.045) 79px 80px),
    repeating-linear-gradient(90deg, transparent 0 79px, rgba(255,255,255,.045) 79px 80px);
}
.pv-hero-bg::before {
  content: "A=24,80m²     +0,00     ESC. 1:50";
  position: absolute;
  right: var(--pad);
  top: 26%;
  width: min(42vw, 520px);
  height: min(38vh, 320px);
  padding: 16px;
  color: rgba(186,255,82,.65);
  border: 1px solid rgba(186,255,82,.24);
  border-left-width: 3px;
  font: 9px/1 var(--font-body);
  letter-spacing: .15em;
  clip-path: polygon(0 0, 72% 0, 72% 28%, 100% 28%, 100% 100%, 24% 100%, 24% 72%, 0 72%);
}
.pv-hero-bg::after { background-size: 40px 40px; opacity: .65; }
.pv-hero-inner { max-width: 790px; }
.pv-hero-title { font-family: var(--font-display); font-size: clamp(56px, 8.2vw, 126px); line-height: .82; letter-spacing: -.075em; margin-bottom: 38px; }
.pv-hero-title em { margin-top: .14em; color: var(--white); font-weight: 300; }
.pv-hero-sub { max-width: 650px; color: rgba(255,255,255,.58); font-size: clamp(14px, 1.2vw, 17px); }
.pv-chip { border-radius: 0; color: rgba(255,255,255,.62); background: rgba(255,255,255,.035); }
.pv-chip svg { stroke: var(--acid); }

.pv-stepper { top: 0; background: var(--ink); border-bottom-color: rgba(255,255,255,.1); }
.pv-step.active .pv-step-circle { border-color: var(--acid); background: color-mix(in srgb, var(--acid) 14%, transparent); }
.pv-step.done .pv-step-circle,
.pv-connector-line::after { background: var(--acid); border-color: var(--acid); }
.pv-step.done .pv-step-check { stroke: var(--ink); }
.pv-step-num { font-family: var(--font-body); }

.pv-step-section { background: var(--paper); }
.pv-step-section:nth-of-type(even) { background: color-mix(in srgb, var(--paper) 91%, var(--white)); }
.pv-section-title,
.pv-step-title { font-family: var(--font-display); letter-spacing: -.045em; }
.pv-upload-area,
.pv-style-card,
.pv-pdf-mockup,
.pv-path-card { border-radius: 0; border-color: var(--line); }
.pv-upload-area { background: color-mix(in srgb, var(--white) 68%, transparent); }
.pv-upload-area:hover,
.pv-upload-area:focus-within { border-color: var(--sage); background: var(--white); }
.pv-upload-icon,
.pv-upload-area:hover .pv-upload-icon { color: var(--sage); }
.pv-style-card { background: var(--white); }
.pv-style-card:hover,
.pv-style-card.selected { border-color: var(--ink); box-shadow: 7px 7px 0 var(--acid); }
.pv-style-card.selected .pv-style-check { background: var(--acid); color: var(--ink); }

.pv-btn { min-height: 50px; border-radius: 0; letter-spacing: .09em; }
.pv-btn-primary { color: var(--ink); background: var(--acid); border-color: var(--acid); }
.pv-btn-primary:hover:not(:disabled) { color: var(--white); background: var(--ink); border-color: var(--ink); }
.pv-btn-primary:disabled { color: rgba(255,255,255,.5); background: var(--sage); }
.pv-btn-ghost { border-color: var(--ink); }
.pv-btn-whatsapp { color: var(--white); background: var(--sage); border-color: var(--sage); }
.pv-btn-whatsapp:hover { background: var(--ink); border-color: var(--ink); }
.pv-pdf-logo-img { display: inline-grid; place-items: center; width: 36px; height: 28px; color: var(--white); font: 500 20px/1 var(--font-display); letter-spacing: -.08em; }
.pv-preview-logo-image { max-width: 100%; max-height: 30px; }
.pv-path-card:hover { background: var(--ink); }
.pv-path-card:hover .pv-path-num { color: var(--acid); }

@media (max-width: 1050px) {
  .pv-site-brand { flex-basis: 150px; padding-inline: 22px; }
  .pv-site-brand .brand-lockup small { display: none; }
  .floatnav-item { padding-inline: 8px; font-size: 8px; }
  .floatnav-item.is-active span { display: none; }
}

@media (max-width: 640px) {
  :root { --pv-nav-h: var(--header-h); }
  #floatnav { background: color-mix(in srgb, var(--ink) 92%, transparent); pointer-events: auto; }
  .pv-site-brand { display: flex; flex: 1; padding-inline: 20px; border-right: 0; }
  .floatnav-burger { margin: 0; height: 64px; width: 64px; flex-basis: 64px; border: 0; border-left: 1px solid rgba(255,255,255,.12); border-radius: 0; background: transparent; }
  #pv-hero { min-height: 88svh; padding-top: 145px; }
  .pv-hero-bg::before { top: 16%; right: -12%; width: 72vw; height: 260px; }
  .pv-hero-title { font-size: clamp(52px, 16vw, 82px); }
  .pv-stepper { top: 0; }
  .menu-drawer { padding-inline: 28px; }
  .menu-nav a { font-size: clamp(25px, 7vw, 34px); }
}

@media (prefers-reduced-motion: reduce) {
  .pv-step-section { animation: none; }
}
