@font-face {
  font-family: 'Fraunces Display';
  src: url('../fonts/Fraunces-Display.woff2') format('woff2');
  font-weight: 600 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Fraunces Display';
  src: url('../fonts/Fraunces-Italic-Display.woff2') format('woff2');
  font-weight: 400 500;
  font-style: italic;
  font-display: swap;
}

:root {
  --bg-0: #06030f;
  --bg-1: #0b0620;
  --bg-2: #241146;
  --gold-1: #f4d976;
  --gold-2: #e8b93e;
  --gold-3: #c9932a;
  --cream: #f5efe0;
  --lavender: #c9bfe0;
  --lavender-dim: #9d8fc4;
  --btn-ink: #1c0a63;
  --hairline: rgba(245, 239, 224, 0.12);
  --card-bg: rgba(245, 239, 224, 0.045);
  --card-border: rgba(245, 239, 224, 0.09);
  --focus: #f4d976;

  --font-display: 'Fraunces Display', Georgia, 'Times New Roman', serif;
  --font-body: -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg-0);
}

body {
  font-family: var(--font-body);
  color: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.pe-page {
  position: relative;
  min-height: 100vh;
  background:
    radial-gradient(120% 65% at 50% -8%, var(--bg-2) 0%, var(--bg-1) 48%, var(--bg-0) 100%);
}

canvas#pe-stars {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.8;
}

.pe-shell {
  position: relative;
  z-index: 2;
  max-width: 640px;
  margin: 0 auto;
  padding: 0 22px;
}

/* ---------- Nav ---------- */
.pe-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0 0;
}

.pe-nav__brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.pe-nav__logo {
  height: 58px;
  width: auto;
  display: block;
}

.pe-nav__cta {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  color: var(--bg-0);
  background: linear-gradient(135deg, var(--gold-1), var(--gold-3));
  padding: 9px 16px;
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
}

/* ---------- Hero ---------- */
.pe-hero {
  padding: 40px 0 8px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.pe-eyebrow {
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-1);
  margin: 0 0 18px;
}

.pe-mascot {
  width: 148px;
  height: auto;
  margin-bottom: 8px;
  filter: drop-shadow(0 0 34px rgba(232, 185, 62, 0.38));
}

.pe-h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 34px;
  line-height: 1.14;
  letter-spacing: -0.01em;
  margin: 6px 0 16px;
  text-wrap: balance;
  color: var(--cream);
}

.pe-h1 em {
  font-style: italic;
  font-weight: 500;
  background: linear-gradient(100deg, var(--gold-1), var(--gold-2) 60%, var(--gold-3));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.pe-sub {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.5;
  color: var(--lavender);
  max-width: 34ch;
  margin: 0 0 30px;
  text-wrap: balance;
}

.pe-cta-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  max-width: 340px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 16.5px;
  color: var(--btn-ink);
  background: linear-gradient(135deg, var(--gold-1), var(--gold-3));
  border-radius: 16px;
  padding: 18px 22px;
  text-decoration: none;
  box-shadow: 0 14px 34px rgba(232, 185, 62, 0.32), 0 2px 0 rgba(255,255,255,0.25) inset;
}

.pe-cta-note {
  font-size: 13px;
  color: var(--lavender-dim);
  margin: 12px 0 0;
}

.pe-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 30px 0 4px;
  padding: 0;
  list-style: none;
}

.pe-trust li {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--lavender);
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 999px;
  padding: 7px 13px;
}

/* ---------- Section shell ---------- */
.pe-section {
  padding: 64px 0 8px;
}

.pe-section__eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--lavender-dim);
  text-align: center;
  margin: 0 0 10px;
}

.pe-section__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 25px;
  line-height: 1.25;
  text-align: center;
  margin: 0 0 40px;
  text-wrap: balance;
}

/* ---------- Steps ---------- */
.pe-steps {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.pe-step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.pe-step__num {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  color: var(--gold-1);
  border: 1px solid rgba(244, 217, 118, 0.4);
}

.pe-step__body h3 {
  margin: 3px 0 5px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  color: var(--cream);
}

.pe-step__body p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--lavender);
  max-width: 46ch;
}

/* ---------- Audio samples ---------- */
.pe-tracks-note {
  text-align: center;
  font-size: 13.5px;
  color: var(--lavender-dim);
  margin: -22px 0 28px;
}

.pe-tracks {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pe-track {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 12px 16px;
}

.pe-track__btn {
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--gold-1), var(--gold-3));
  color: var(--btn-ink);
  font-size: 13px;
  padding: 0;
}

.pe-track__icon {
  transform: translateX(1px);
}

.pe-track.is-playing .pe-track__icon {
  transform: none;
}

.pe-track__body {
  flex: 1;
  min-width: 0;
}

.pe-track__label {
  margin: 0 0 7px;
  font-size: 14px;
  font-weight: 600;
  color: var(--cream);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pe-track__bar {
  height: 4px;
  border-radius: 999px;
  background: rgba(245, 239, 224, 0.12);
  overflow: hidden;
}

.pe-track__fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold-1), var(--gold-2));
}

/* ---------- Testimonials ---------- */
.pe-quotes {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pe-quote {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 18px;
  padding: 22px 22px 20px;
}

.pe-quote p {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 17px;
  line-height: 1.5;
  margin: 0 0 14px;
  color: var(--cream);
  text-wrap: balance;
}

.pe-quote cite {
  display: flex;
  align-items: center;
  gap: 10px;
  font-style: normal;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--gold-1);
}

.pe-quote__avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  flex: none;
  border: 1px solid rgba(244, 217, 118, 0.35);
}

/* ---------- Contact page ---------- */
.pe-contact-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 18px;
  padding: 26px 24px;
  margin: 0 0 20px;
}

.pe-contact-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.pe-contact-icon {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  border: 1px solid rgba(244, 217, 118, 0.35);
}

.pe-contact-label {
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lavender-dim);
}

.pe-contact-row a,
.pe-contact-row p.pe-contact-value {
  margin: 0;
  font-size: 16px;
  color: var(--cream);
  text-decoration: none;
}

.pe-contact-row a:hover {
  color: var(--gold-1);
}

.pe-contact-note {
  text-align: center;
  font-style: italic;
  font-family: var(--font-display);
  color: var(--lavender);
  font-size: 15px;
  max-width: 44ch;
  margin: 0 auto;
}

/* ---------- Legal content (política de privacidade etc.) ---------- */
.pe-legal {
  max-width: 640px;
  margin: 0 auto;
  text-align: left;
}

.pe-legal__intro {
  text-align: center;
  color: var(--lavender);
  font-size: 15px;
  line-height: 1.6;
  max-width: 52ch;
  margin: 0 auto 40px;
}

.pe-legal h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  color: var(--gold-1);
  margin: 40px 0 12px;
}

.pe-legal h2:first-child {
  margin-top: 0;
}

.pe-legal p {
  color: var(--lavender);
  font-size: 15px;
  line-height: 1.7;
  margin: 0 0 14px;
}

.pe-legal ul {
  margin: 0 0 14px;
  padding-left: 0;
  list-style: none;
}

.pe-legal li {
  position: relative;
  padding-left: 20px;
  color: var(--lavender);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 6px;
}

.pe-legal li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 9px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold-2);
}

.pe-legal strong {
  color: var(--cream);
}

.pe-legal a {
  color: var(--gold-1);
}

/* ---------- FAQ ---------- */
.pe-faq {
  max-width: 640px;
  margin: 0 auto;
  text-align: left;
}

.pe-faq > p:first-child {
  text-align: center;
  color: var(--lavender);
  font-size: 15px;
  line-height: 1.6;
  max-width: 52ch;
  margin: 0 auto 40px;
}

.pe-faq h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  color: var(--gold-1);
  margin: 32px 0 8px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.pe-faq h2:first-of-type {
  padding-top: 0;
  border-top: none;
  margin-top: 0;
}

.pe-faq p {
  color: var(--lavender);
  font-size: 15px;
  line-height: 1.7;
  margin: 0 0 14px;
}

.pe-faq strong {
  color: var(--cream);
}

.pe-faq a {
  color: var(--gold-1);
}

/* ---------- Final CTA ---------- */
.pe-final {
  text-align: center;
  padding: 68px 0 56px;
}

.pe-final__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 26px;
  line-height: 1.3;
  margin: 0 0 26px;
  text-wrap: balance;
}

/* ---------- Footer ---------- */
.pe-footer {
  border-top: 1px solid var(--hairline);
  padding: 26px 0 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.pe-footer__links {
  display: flex;
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
  justify-content: center;
}

.pe-footer__links a {
  color: var(--lavender-dim);
  text-decoration: none;
  font-size: 12.5px;
}

.pe-footer__copy {
  font-size: 11.5px;
  color: rgba(157, 143, 196, 0.6);
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

@media (min-width: 600px) {
  .pe-h1 { font-size: 42px; }
  .pe-sub { font-size: 19px; }
  .pe-section__title { font-size: 28px; }
}


@media (prefers-reduced-motion: reduce) {
  canvas#pe-stars { display: none; }
}

/* ---------- Meus Pedidos (busca por e-mail + WhatsApp) ---------- */
.pe-nav__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pe-nav__orders {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--cream);
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 999px;
  padding: 8px 16px 8px 8px;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.pe-nav__orders:hover {
  border-color: rgba(244, 217, 118, 0.5);
  background: rgba(245, 239, 224, 0.08);
  transform: translateY(-1px);
}

.pe-nav__orders-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-1), var(--gold-3));
  color: var(--btn-ink);
  flex-shrink: 0;
}

.pe-orders-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(6, 3, 15, 0.78);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

/* [hidden] tem a mesma especificidade da classe acima — sem isso, o
   display:flex sempre ganha do hidden e o modal nunca some. */
.pe-orders-overlay[hidden] {
  display: none;
}

@keyframes pe-orders-modal-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.pe-orders-modal {
  position: relative;
  width: 100%;
  max-width: 400px;
  max-height: 86vh;
  overflow-y: auto;
  background: var(--bg-1);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 28px 24px 24px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(244, 217, 118, 0.06);
  animation: pe-orders-modal-in 0.25s ease;
}

.pe-orders-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  color: var(--cream);
  font-size: 14px;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.pe-orders-modal__close:hover {
  border-color: rgba(244, 217, 118, 0.5);
  color: var(--gold-1);
}

.pe-orders-modal__badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-1), var(--gold-3));
  color: var(--btn-ink);
  margin: 0 0 16px;
  box-shadow: 0 6px 20px rgba(232, 185, 62, 0.35);
}

.pe-orders-modal__spinner {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 3px solid var(--card-border);
  border-top-color: var(--gold-1);
  margin: 6px 0 16px;
  animation: pe-orders-spin 0.8s linear infinite;
}

@keyframes pe-orders-spin {
  to { transform: rotate(360deg); }
}

.pe-orders-modal__eyebrow {
  font-family: var(--font-body);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-1);
  margin: 0 0 8px;
}

.pe-orders-modal__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
  color: var(--cream);
  margin: 0 0 10px;
}

.pe-orders-modal__sub {
  font-size: 14px;
  line-height: 1.5;
  color: var(--lavender);
  margin: 0 0 20px;
}

.pe-orders-modal__label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--lavender);
  margin: 0 0 6px;
}

.pe-orders-modal__field {
  position: relative;
  margin-bottom: 16px;
}

.pe-orders-modal__field-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--bg-0);
  opacity: 0.45;
  pointer-events: none;
}

.pe-orders-modal__field .pe-orders-modal__input {
  margin-bottom: 0;
  padding-left: 40px;
}

.pe-orders-modal__input {
  width: 100%;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--bg-0);
  background: var(--cream);
  border: 2px solid transparent;
  border-radius: 12px;
  padding: 13px 14px;
  margin-bottom: 16px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.pe-orders-modal__input:focus {
  outline: none;
  border-color: var(--gold-2);
  box-shadow: 0 0 0 3px rgba(232, 185, 62, 0.2);
}

.pe-orders-modal__error {
  font-size: 13px;
  color: #f19a9a;
  margin: -8px 0 14px;
}

.pe-orders-modal__submit {
  display: block;
  width: 100%;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  color: var(--btn-ink);
  background: linear-gradient(135deg, var(--gold-1), var(--gold-3));
  border: none;
  border-radius: 14px;
  padding: 15px;
  cursor: pointer;
  margin-bottom: 10px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.pe-orders-modal__submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(232, 185, 62, 0.3);
}

.pe-orders-modal__cancel {
  display: block;
  width: 100%;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  color: var(--lavender);
  background: transparent;
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 13px;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.pe-orders-modal__cancel:hover {
  border-color: rgba(245, 239, 224, 0.25);
  color: var(--cream);
}

.pe-orders-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.pe-orders-list__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  text-decoration: none;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 14px 16px;
  transition: border-color 0.2s ease, transform 0.15s ease, background 0.2s ease;
}

.pe-orders-list__item:hover {
  border-color: rgba(244, 217, 118, 0.4);
  background: rgba(245, 239, 224, 0.07);
  transform: translateY(-1px);
}

.pe-orders-list__item-main {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.pe-orders-list__order {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  color: var(--gold-1);
}

.pe-orders-list__receiver {
  font-size: 13.5px;
  color: var(--cream);
}

.pe-orders-list__meta {
  font-size: 12px;
  color: var(--lavender-dim);
}

.pe-orders-list__status.is-ready {
  color: #8fd99a;
  font-weight: 600;
}

.pe-orders-list__status.is-waiting {
  color: var(--gold-1);
  font-weight: 600;
}

.pe-orders-list__chevron {
  flex-shrink: 0;
  color: var(--lavender-dim);
}

/* ---------- Cross-promo card (10-melhores <-> seja-afiliado) ---------- */
.pe-crosspromo {
  max-width: 480px;
  margin: 32px auto 0;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 22px 24px;
  text-align: center;
}

.pe-crosspromo__badge {
  font-size: 30px;
  line-height: 1;
  margin-bottom: 10px;
}

.pe-crosspromo__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  color: var(--cream);
  margin: 0 0 8px;
}

.pe-crosspromo__text {
  font-size: 14px;
  line-height: 1.5;
  color: var(--lavender);
  margin: 0 0 18px;
}

.pe-crosspromo__btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  color: var(--btn-ink);
  background: linear-gradient(135deg, var(--gold-1), var(--gold-3));
  text-decoration: none;
  padding: 12px 24px;
  border-radius: 12px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.pe-crosspromo__btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(232, 185, 62, 0.3);
}
