/* =========================================================
   Perfil Elite — Design System v2
   Escuro, sofisticado, sem ornamento excessivo.
   Referência: Hims · AG1 · Does It Hurt
   ========================================================= */

:root {
  /* Superfícies */
  --pe-bg:        #080809;
  --pe-bg-2:      #0F0F11;
  --pe-bg-3:      #141416;
  --pe-line:      rgba(255,255,255,0.06);

  /* Tipografia */
  --pe-text:      #F0EEE9;
  --pe-text-dim:  #A8A49C;
  --pe-muted:     #706D65;

  /* Gold — apenas microdetalhes (separador, dot, underline) */
  --pe-gold:      #C8A96E;
  --pe-gold-2:    #B8995E;
  --pe-gold-soft: #D4B97E;
  --pe-gold-deep: #8A6D1F;

  /* Forma */
  --pe-radius:    8px;
  --pe-radius-lg: 14px;
  --pe-shadow:    0 1px 2px rgba(0,0,0,.5), 0 4px 20px rgba(0,0,0,.2);
  --pe-shadow-gold: none;

  /* Fontes */
  --pe-serif: "Instrument Serif", "DM Serif Display", Georgia, serif;
  --pe-sans:  "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* ---- reset mínimo ---- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--pe-bg);
  color: var(--pe-text);
  font-family: var(--pe-sans);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, .pe-serif {
  font-family: var(--pe-serif);
  font-weight: 400;
  letter-spacing: -0.02em;
}

a { color: inherit; text-decoration: none; }

/* ---- layout ---- */
.pe-container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* ---- eyebrow ---- */
.pe-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--pe-text-dim); font-weight: 500; font-family: var(--pe-sans);
}
.pe-eyebrow::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%;
  background: var(--pe-gold); flex-shrink: 0;
}
.pe-eyebrow a {
  color: inherit;
  border-bottom: 1px solid rgba(200,169,110,.35);
  transition: color .2s, border-color .2s;
}
.pe-eyebrow a:hover { color: var(--pe-text); border-bottom-color: var(--pe-gold); }

/* ---- accent (antigo pe-gold-text — mantido para não quebrar outras telas) ---- */
.pe-gold-text {
  color: var(--pe-text);
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
  -webkit-text-fill-color: unset;
}

/* ---- divisor ---- */
.pe-divider {
  height: 1px; border: none;
  background: var(--pe-line);
  margin: 0;
}

/* ---- botões ---- */
.pe-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--pe-sans); font-weight: 500; font-size: 0.92rem;
  padding: 15px 28px; border-radius: 6px; cursor: pointer;
  border: 1px solid transparent;
  transition: transform .18s ease, background .18s ease, opacity .18s ease, border-color .18s ease;
  text-align: center; line-height: 1; letter-spacing: 0.01em;
}
/* CTA principal — off-white limpo, sem gradiente */
.pe-btn-gold {
  background: var(--pe-text);
  color: var(--pe-bg);
  border-color: transparent;
  box-shadow: none;
}
.pe-btn-gold:hover { background: #fff; transform: translateY(-1px); }

.pe-btn-ghost {
  background: transparent; color: var(--pe-text-dim); border-color: var(--pe-line);
}
.pe-btn-ghost:hover { border-color: rgba(255,255,255,.15); color: var(--pe-text); }

/* breathing sutil, sem glow */
@keyframes pe-pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.86; }
}
.pe-pulse { animation: pe-pulse 3.8s ease-in-out infinite; }

/* ---- cards ---- */
.pe-card {
  background: var(--pe-bg-2);
  border: 1px solid var(--pe-line);
  border-radius: var(--pe-radius-lg);
  padding: 28px;
  box-shadow: none;
}
/* classe mantida, borda dourada removida */
.pe-card-gold-edge { position: relative; }
.pe-card-gold-edge::before { display: none; }

/* ---- seções ---- */
section { position: relative; padding: 140px 0; }
.pe-section-title {
  font-size: clamp(1.9rem, 5.5vw, 3.2rem);
  line-height: 1.08; margin: 14px 0 0; font-weight: 400;
}
.pe-section-sub {
  color: var(--pe-text-dim); font-size: 1rem;
  margin-top: 18px; max-width: 52ch; line-height: 1.75;
}

/* ---- formulários (outras telas) ---- */
.pe-input, .pe-textarea, .pe-select {
  width: 100%; background: var(--pe-bg-2); border: 1px solid var(--pe-line);
  color: var(--pe-text); border-radius: var(--pe-radius); padding: 14px 16px;
  font-family: var(--pe-sans); font-size: 1rem; transition: border-color .2s;
}
.pe-input:focus, .pe-textarea:focus, .pe-select:focus {
  outline: none; border-color: rgba(240,238,233,.2);
}
.pe-label { display: block; font-weight: 500; margin-bottom: 8px; font-size: .9rem; color: var(--pe-text-dim); }
.pe-help { color: var(--pe-muted); font-size: .82rem; margin-top: 6px; line-height: 1.55; }

/* ---- gsap defaults ---- */
.gsap-prep { opacity: 0; }
.pe-reveal { opacity: 0; transform: translateY(8px); }

/* ================================================================
   COMPONENTES NOVOS — landing v2
   ================================================================ */

/* ---- seção Cintia ---- */
.pe-cintia-grid {
  display: grid;
  grid-template-columns: 46% 1fr;
  gap: 72px;
  align-items: center;
}
.pe-cintia-photo {
  aspect-ratio: 3/4;
  background: var(--pe-bg-3);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: flex-end;
}
.pe-cintia-photo::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,10,12,.92) 0%, rgba(10,10,12,.35) 22%, transparent 48%);
}
.pe-cintia-photo-caption {
  position: relative; z-index: 1;
  padding: 20px 22px;
  font-size: 0.7rem;
  color: var(--pe-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.pe-cintia-name {
  font-family: var(--pe-serif);
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  line-height: 1.0; margin: 12px 0 6px; font-weight: 400;
}
.pe-cintia-handle {
  font-size: 0.83rem; color: var(--pe-text-dim); margin: 0 0 28px;
}
.pe-cintia-handle a {
  border-bottom: 1px solid rgba(255,255,255,.1);
  transition: color .2s, border-color .2s;
}
.pe-cintia-handle a:hover { color: var(--pe-text); border-bottom-color: rgba(255,255,255,.25); }
.pe-cintia-quote {
  font-size: 1.03rem; color: var(--pe-text-dim); line-height: 1.8; max-width: 46ch;
}

/* ---- mockups de app (antes/depois) ---- */
.pe-app-card {
  width: 252px;
  border-radius: 20px;
  overflow: hidden;
  background: #13131A;
  box-shadow: 0 32px 72px rgba(0,0,0,.65), 0 1px 0 rgba(255,255,255,.04);
  flex-shrink: 0;
}
.pe-app-photo {
  height: 308px;
  position: relative;
  overflow: hidden;
}
.pe-app-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center top;
  display: block;
}
.pe-app-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 38%, rgba(0,0,0,.92) 100%);
}
.pe-app-meta {
  position: absolute; bottom: 14px; left: 16px; right: 16px;
}
.pe-app-name {
  font-family: var(--pe-sans); font-size: 1.05rem; font-weight: 600; color: #fff;
}
.pe-app-dist { font-size: 0.7rem; color: rgba(255,255,255,.45); margin-top: 2px; }
.pe-app-body { padding: 13px 15px 17px; }
.pe-app-bio {
  font-size: 0.78rem; color: #6E6C68; line-height: 1.5;
  margin-bottom: 11px; min-height: 52px;
}
.pe-app-opener {
  background: #1C1C24; border-radius: 10px; padding: 10px 13px;
  font-size: 0.77rem; color: #908E8A;
  border-left: 2px solid var(--pe-gold);
}
.pe-app-opener strong {
  display: block; font-size: 0.62rem;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--pe-muted); margin-bottom: 5px; font-family: var(--pe-sans);
}
/* foto simulada — before: escura, quente, plana */
.pe-app-before .pe-app-photo {
  background: radial-gradient(ellipse 75% 62% at 50% 30%, #2E2318 0%, #171210 100%);
}
/* foto simulada — after: mais fria, mais contrastada */
.pe-app-after .pe-app-photo {
  background:
    radial-gradient(ellipse 60% 50% at 46% 22%, #353844 0%, #1E2130 55%, #12131A 100%);
}

/* ---- entregáveis com número-âncora ---- */
.pe-deliverable {
  background: var(--pe-bg-2);
  border: 1px solid var(--pe-line);
  border-radius: var(--pe-radius-lg);
  padding: 32px;
}
.pe-deliverable-num {
  font-family: var(--pe-serif); font-size: 3.4rem;
  color: var(--pe-text); line-height: 1; display: block; margin-bottom: 22px;
}
.pe-deliverable h3 {
  font-family: var(--pe-sans); font-size: 1rem; font-weight: 600;
  margin: 0 0 8px; letter-spacing: 0; color: var(--pe-text);
}
.pe-deliverable p { font-size: 0.88rem; color: var(--pe-text-dim); line-height: 1.65; margin: 0; }

/* ---- depoimentos ---- */
.pe-testimonial {
  background: var(--pe-bg-2); border: 1px solid var(--pe-line);
  border-radius: var(--pe-radius-lg); padding: 28px;
}
.pe-testimonial-text {
  font-size: 0.94rem; line-height: 1.72; color: var(--pe-text-dim); margin: 0 0 20px;
}
.pe-testimonial footer strong {
  display: block; font-size: 0.87rem; font-weight: 600; color: var(--pe-text);
}
.pe-testimonial footer span { font-size: 0.77rem; color: var(--pe-muted); }

/* ---- stat de impacto ---- */
.pe-impact-num {
  font-family: var(--pe-serif); font-size: clamp(3rem, 7vw, 5rem);
  color: var(--pe-text); line-height: 1; display: block;
}
.pe-impact-label { font-size: 0.88rem; color: var(--pe-text-dim); }

/* ---- ancoragem de preço ---- */
.pe-price-anchor {
  font-size: 0.9rem; color: var(--pe-text-dim); line-height: 1.75;
  max-width: 50ch;
}

/* ---- steps redesenhados ---- */
.pe-step-num {
  font-family: var(--pe-serif); font-size: 0.95rem;
  color: var(--pe-gold); display: block; margin-bottom: 4px;
}

/* ---- pe-grain mantido mas sem uso no body ---- */
.pe-grain::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(900px 400px at 80% -15%, rgba(240,238,233,.025), transparent 60%);
}

/* ---- checkbox-card e radio-card (formulário) ---- */
.pe-checkbox-card {
  display: flex; align-items: center; justify-content: center;
  padding: 11px 14px; border-radius: var(--pe-radius);
  border: 1px solid var(--pe-line); background: var(--pe-bg-2);
  cursor: pointer; font-size: .88rem; color: var(--pe-text-dim);
  transition: border-color .15s, color .15s, background .15s;
  user-select: none;
}
.pe-checkbox-card:hover { border-color: rgba(255,255,255,.14); color: var(--pe-text); }
.pe-checkbox-card:has(.pe-app-check:checked) {
  border-color: var(--pe-gold);
  background: rgba(200,169,110,.08);
  color: var(--pe-text);
}
.pe-field-error {
  font-size: .78rem; color: #e08a8a; margin-top: 6px; display: none;
}
.pe-field-error.visible { display: block; }

/* ---- HERO premium (2 colunas) ---- */
.pe-hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 64px;
  align-items: center;
}
.pe-hero-copy { max-width: 560px; }
.pe-hero-visual {
  display: flex; justify-content: center;
  animation: pe-hero-photo-in 1.1s .2s cubic-bezier(.2,.7,.2,1) both;
}
.pe-hero-photo {
  position: relative;
  width: 100%; max-width: 430px;
  aspect-ratio: 4/5;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(200,169,110,.22);
  box-shadow: 0 44px 100px rgba(0,0,0,.62), 0 2px 0 rgba(255,255,255,.04);
}
.pe-hero-photo img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 12%;
  display: block;
}
.pe-hero-photo-tag {
  position: absolute; left: 16px; right: 16px; bottom: 16px;
  display: flex; flex-direction: column; gap: 3px;
  background: rgba(10,10,12,.5);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 13px; padding: 11px 15px;
}
.pe-hero-tag-stars { color: var(--pe-gold); font-size: .7rem; letter-spacing: 3px; }
.pe-hero-photo-tag > span:last-child {
  font-size: .82rem; color: var(--pe-text); font-weight: 500; letter-spacing: .01em;
}
@keyframes pe-hero-photo-in {
  from { opacity: 0; transform: translateY(16px) scale(.985); }
  to   { opacity: 1; transform: none; }
}

@media (max-width: 900px) {
  section { padding: 88px 0; }
  .pe-hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .pe-hero-copy { max-width: 100%; }
  .pe-hero-visual { order: 2; }
  .pe-hero-photo { max-width: 330px; }
  .pe-cintia-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .pe-cintia-photo {
    aspect-ratio: 3/4;
    max-height: 460px;
  }
}

@media (max-width: 600px) {
  section { padding: 72px 0; }
  .pe-app-card { width: 220px; }
  .pe-app-photo { height: 270px; }
}

@media (prefers-reduced-motion: reduce) {
  .pe-pulse { animation: none; }
  .pe-hero-visual { animation: none !important; }
  .gsap-prep { opacity: 1 !important; }
  .pe-reveal { opacity: 1 !important; transform: none !important; }
  html { scroll-behavior: auto; }
}
