/* =====================================================
   Biblioteca do Investidor — Eduardo Lopes (pt-PT)
   Fiel ao original (verde escuro + verde neon + dourado + creme),
   com acabamento premium por cima.
   ===================================================== */

:root {
  --escuro: #0d1a12;
  --escuro-2: #13241a;
  --escuro-3: #1c3227;
  --verde: #1a6b3c;
  --verde-claro: #2d8f56;
  --neon: #22c55e;
  --ouro: #c9973a;
  --ouro-claro: #f0c060;
  --creme: #f8f4ec;
  --cinza: #e8e4dc;
  --texto: #1c2b22;
  --suave: #4a6358;

  --serif: "Playfair Display", Georgia, serif;
  --sans: "DM Sans", system-ui, -apple-system, sans-serif;
  --display: "Bebas Neue", Impact, sans-serif;

  --r: 16px;
  --r-sm: 10px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --shadow: 0 24px 60px -24px rgba(13, 26, 18, .28);
  --container: 1180px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans); color: var(--texto); background: var(--creme);
  line-height: 1.6; font-size: 16px; overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
strong { font-weight: 600; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }

/* ---------- Tipografia ---------- */
h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.1; letter-spacing: -.015em; }
h2 { font-size: clamp(32px, 4.6vw, 52px); }
h3 { font-size: clamp(22px, 2.4vw, 26px); }

.kicker {
  display: block; font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  color: var(--verde); margin-bottom: 22px;
}
.kicker--green { color: var(--neon); }

.section { padding: clamp(72px, 9vw, 110px) 0; position: relative; }
.section--cream { background: var(--creme); }
.section--white { background: #fff; }
.section--dark { background: var(--escuro); color: var(--creme); }
.section--dark2 { background: var(--escuro-2); }
.section--dark::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(50% 35% at 85% 0%, rgba(26,107,60,.28), transparent 70%);
}
.section > .container { position: relative; }

.head { max-width: 720px; margin-bottom: 56px; }
.head h2 { margin-bottom: 20px; }
.head p { font-size: 18px; color: var(--suave); line-height: 1.65; }
.head--light p { color: rgba(248,244,236,.68); }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--sans); font-weight: 600; font-size: 16px;
  padding: 16px 30px; border-radius: 10px; border: 0; cursor: pointer; white-space: nowrap;
  position: relative; overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .3s;
}
.btn--primary {
  color: var(--escuro); background: var(--neon);
  box-shadow: 0 10px 30px -10px rgba(34,197,94,.6);
}
.btn--primary::after {
  content: ""; position: absolute; top: 0; left: -120%; width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.45), transparent);
  transform: skewX(-20deg); animation: shine 3.6s infinite;
}
@keyframes shine { 0%, 65% { left: -120%; } 100% { left: 170%; } }
.btn--primary:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -10px rgba(34,197,94,.75); background: #2fd36a; }
.btn--primary:active { transform: translateY(0); }
.btn--xl { padding: 19px 40px; font-size: 17px; }

.safe { display: flex; align-items: center; gap: 8px; margin-top: 16px; font-size: 13px; color: rgba(248,244,236,.55); }
.safe svg { flex: none; }
.safe--center { justify-content: center; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; background: var(--escuro); color: var(--creme);
  padding: clamp(56px, 7vw, 96px) 0 clamp(64px, 7vw, 96px);
  min-height: 100svh; display: flex; align-items: center;
}
.hero__bg { position: absolute; inset: 0; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(90px); animation: float 16s ease-in-out infinite; }
.orb--1 { width: 65vw; height: 65vw; max-width: 760px; max-height: 760px; background: radial-gradient(circle, rgba(26,107,60,.75) 0%, transparent 70%); top: -25%; right: -20%; }
.orb--2 { width: 40vw; height: 40vw; max-width: 460px; max-height: 460px; background: radial-gradient(circle, rgba(201,151,58,.35) 0%, transparent 70%); bottom: -25%; left: -12%; animation-delay: -7s; }
@keyframes float { 0%, 100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-3%, 4%) scale(1.06); } }
.noise { position: absolute; inset: 0; opacity: .045; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

.hero__grid { position: relative; display: grid; gap: 48px; align-items: center; grid-template-columns: 1fr; }

.pill {
  display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ouro-claro); padding: 9px 18px; border-radius: 999px; margin-bottom: 30px;
  border: 1px solid rgba(201,151,58,.45); background: rgba(201,151,58,.08);
}
.hero__title { font-size: clamp(38px, 5vw, 60px); font-weight: 700; margin-bottom: 22px; max-width: 640px; text-wrap: balance; }
.hero__title em { font-style: normal; color: var(--neon); }
.hero__sub { font-family: var(--serif); font-style: italic; font-size: clamp(18px, 2vw, 22px); color: rgba(248,244,236,.6); max-width: 600px; line-height: 1.5; margin-bottom: 34px; }

.hero__list { display: grid; gap: 14px; margin-bottom: 42px; }
.hero__list li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; color: rgba(248,244,236,.92); }
.hero__list li::before {
  content: "✓"; flex: none; width: 22px; height: 22px; border-radius: 50%; margin-top: 1px;
  display: grid; place-items: center; font-size: 12px; font-weight: 700;
  color: var(--escuro); background: var(--neon);
}

.price { display: flex; align-items: center; gap: 22px; margin-bottom: 26px; flex-wrap: wrap; }
.price__old { color: rgba(248,244,236,.45); font-size: 15px; }
.price__now { display: flex; flex-direction: column; }
.price__label { font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--ouro-claro); margin-bottom: 2px; }
.price__value { font-family: var(--display); font-size: 64px; line-height: .9; letter-spacing: .02em; }
.price__value small.eur, .offer__price strong small.eur { margin-left: 0; margin-right: 0; }
.price__value small { font-size: 22px; margin-right: 4px; vertical-align: 10px; }
.price__off { font-size: 12px; font-weight: 700; letter-spacing: .08em; color: var(--escuro); background: var(--ouro); padding: 7px 14px; border-radius: 6px; }

.hero__visual { display: grid; place-items: center; }
.hero__card {
  position: relative; width: min(100%, 420px); border-radius: 18px; overflow: hidden;
  background: linear-gradient(160deg, rgba(255,255,255,.08), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.1);
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.7);
  transform: perspective(1200px) rotateY(-6deg) rotateX(2deg);
  transition: transform .8s var(--ease), box-shadow .8s var(--ease);
}
.hero__card:hover { transform: perspective(1200px) rotateY(0) rotateX(0) translateY(-6px); box-shadow: 0 50px 90px -30px rgba(0,0,0,.8), 0 0 0 1px rgba(34,197,94,.25); }
.hero__card img { padding: 22px 22px 60px; animation: hover 7s ease-in-out infinite; }
@keyframes hover { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.hero__caption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 60px 22px 20px; text-align: center;
  background: linear-gradient(to top, rgba(13,26,18,.98), rgba(13,26,18,.7) 60%, transparent);
  font-size: 13px; color: rgba(248,244,236,.6);
}
.hero__caption strong { display: block; color: #fff; font-size: 16px; }

/* ---------- Cards "o que recebe" ---------- */
.cards { display: grid; gap: 22px; grid-template-columns: 1fr; }
.card {
  position: relative; background: #fff; border-radius: var(--r); padding: 30px 28px 32px;
  border: 1px solid rgba(13,26,18,.05); overflow: hidden;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.card::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: linear-gradient(90deg, var(--verde), var(--neon)); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.card:hover::after { transform: scaleX(1); }
.card__num { font-family: var(--display); font-size: 56px; line-height: 1; color: var(--cinza); display: block; margin-bottom: 14px; transition: color .4s; }
.card:hover .card__num { color: var(--ouro); }
.card h3 { margin-bottom: 12px; }
.card > p { color: var(--suave); font-size: 15px; margin-bottom: 20px; line-height: 1.6; }
.card ul { display: grid; gap: 10px; }
.card li { position: relative; padding-left: 26px; font-size: 14.5px; color: var(--texto); }
.card li::before { content: "→"; position: absolute; left: 0; top: 0; color: var(--verde-claro); font-weight: 500; }

/* ---------- Detalhe de cada manual ---------- */
.detail {
  position: relative; display: grid; gap: 40px; grid-template-columns: 1fr;
  padding: 64px 0; border-top: 1px solid rgba(255,255,255,.08);
}
.detail:first-of-type { border-top: 0; }
.detail__bignum { position: absolute; top: 40px; left: -6px; font-family: var(--display); font-size: clamp(90px, 10vw, 130px); line-height: 1; color: rgba(255,255,255,.05); pointer-events: none; user-select: none; }
.detail__left { position: relative; }
.detail__img { position: relative; display: grid; place-items: center; margin-bottom: 36px; }
.detail__img::before { content: ""; position: absolute; width: 60%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(201,151,58,.22), transparent 65%); filter: blur(30px); }
.detail__img img { position: relative; width: min(100%, 340px); filter: drop-shadow(0 30px 40px rgba(0,0,0,.55)); transition: transform .7s var(--ease); }
.detail:hover .detail__img img { transform: translateY(-8px) rotate(-1.5deg) scale(1.02); }
.tag {
  display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--neon); padding: 7px 14px; border-radius: 999px; margin-bottom: 18px;
  border: 1px solid rgba(34,197,94,.3); background: rgba(34,197,94,.06);
}
.detail__left h3 { font-size: clamp(26px, 3vw, 34px); margin-bottom: 14px; }
.detail__left > p { color: rgba(248,244,236,.7); font-size: 16.5px; margin-bottom: 22px; }
.detail blockquote {
  font-style: italic; font-size: 15px; line-height: 1.6; color: var(--ouro-claro);
  padding: 18px 22px; border-left: 3px solid var(--ouro); border-radius: 0 var(--r-sm) var(--r-sm) 0;
  background: rgba(201,151,58,.07);
}
.detail__right h4 { font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: rgba(248,244,236,.5); margin-bottom: 18px; }
.checks { display: grid; gap: 14px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; font-size: 15.5px; color: rgba(248,244,236,.9); line-height: 1.55; }
.checks li::before {
  content: "✓"; flex: none; width: 22px; height: 22px; border-radius: 50%; margin-top: 2px;
  display: grid; place-items: center; font-size: 11px; font-weight: 700;
  color: var(--neon); border: 1px solid rgba(34,197,94,.5); background: rgba(34,197,94,.1);
}

/* ---------- Para quem é ---------- */
.scenarios { display: grid; gap: 18px; grid-template-columns: 1fr; }
.scenario {
  display: flex; gap: 18px; align-items: flex-start; padding: 26px;
  background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.08); border-radius: var(--r);
  transition: transform .45s var(--ease), border-color .3s, background .3s;
}
.scenario:hover { transform: translateY(-6px); border-color: rgba(34,197,94,.35); background: rgba(255,255,255,.06); }
.scenario__ic { flex: none; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; color: var(--neon); background: rgba(34,197,94,.12); border: 1px solid rgba(34,197,94,.25); }
.scenario__ic svg { width: 22px; height: 22px; }
.scenario p { font-size: 15.5px; color: rgba(248,244,236,.9); line-height: 1.55; }

/* ---------- Depoimentos ---------- */
.testis { display: grid; gap: 22px; grid-template-columns: 1fr; }
.testi {
  background: var(--creme); border-radius: var(--r); padding: 30px 30px 28px;
  border-left: 3px solid var(--verde); display: flex; flex-direction: column; gap: 18px;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.testi:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.stars { color: var(--ouro); letter-spacing: .14em; font-size: 14px; }
.testi blockquote { font-style: italic; font-size: 15.5px; line-height: 1.65; color: var(--texto); flex: 1; }
.testi figcaption { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--suave); }
.testi figcaption strong { display: block; color: var(--texto); font-size: 15px; }
.avatar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-weight: 600; font-size: 14px; color: #fff; background: var(--verde); flex: none; }

/* ---------- Autor ---------- */
.author { display: grid; gap: 44px; grid-template-columns: 1fr; align-items: start; }
.author h2 { margin-bottom: 34px; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.stat {
  background: var(--escuro); color: var(--creme); border-radius: var(--r); padding: 24px 22px;
  border: 1px solid transparent; transition: transform .45s var(--ease), border-color .3s;
}
.stat:hover { transform: translateY(-5px); border-color: rgba(34,197,94,.35); }
.stat strong { display: block; font-family: var(--display); font-size: 40px; line-height: 1; color: var(--neon); margin-bottom: 6px; letter-spacing: .03em; }
.stat span { font-size: 12.5px; color: rgba(248,244,236,.6); }
.author__right p { color: var(--suave); margin-bottom: 18px; font-size: 16.5px; line-height: 1.7; }
.author__right p strong { color: var(--texto); }

/* ---------- Oferta ---------- */
.section--offer { overflow: hidden; }
.offer__glow { position: absolute; left: 50%; bottom: -30%; width: 80vw; max-width: 900px; aspect-ratio: 1; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(circle, rgba(26,107,60,.55), transparent 65%); filter: blur(60px); pointer-events: none; animation: breathe 6s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { opacity: .7; } 50% { opacity: 1; } }
.offer { text-align: center; max-width: 720px; }
.offer .kicker { text-align: center; }
.offer h2 { margin-bottom: 40px; }
.offer__list {
  text-align: left; border-radius: var(--r); padding: 8px 30px; margin-bottom: 44px;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.offer__list li { display: flex; align-items: center; gap: 14px; padding: 16px 0; font-size: 15.5px; border-bottom: 1px solid rgba(255,255,255,.07); color: rgba(248,244,236,.85); }
.offer__list li:last-child { border-bottom: 0; }
.offer__list li strong { color: #fff; }
.offer__list li::before { content: "✓"; flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; color: #fff; background: var(--verde); }
.offer__price { display: flex; align-items: center; justify-content: center; gap: 16px; margin-bottom: 34px; }
.offer__price s { color: rgba(248,244,236,.45); font-size: 16px; }
.offer__price strong { font-family: var(--display); font-size: 80px; line-height: .9; letter-spacing: .02em; }
.offer__price strong small { font-size: 26px; margin-right: 4px; vertical-align: 14px; }
.offer .btn { min-width: min(100%, 480px); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 14px; max-width: 720px; }
.faq details { background: #fff; border-radius: var(--r-sm); overflow: hidden; border: 1px solid rgba(13,26,18,.05); transition: box-shadow .3s; }
.faq details[open] { box-shadow: var(--shadow); }
.faq summary { list-style: none; cursor: pointer; padding: 24px 60px 24px 26px; font-weight: 600; font-size: 16px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%);
  font-size: 22px; font-weight: 300; color: var(--texto); line-height: 1;
  transition: transform .35s var(--ease), color .3s;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); color: var(--verde); }
.faq details p { padding: 0 26px 24px; color: var(--suave); font-size: 15.5px; line-height: 1.65; animation: fadeDown .4s var(--ease); }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ---------- Rodapé ---------- */
.footer { background: var(--escuro); color: rgba(248,244,236,.55); text-align: center; padding: 56px 0 120px; font-size: 14px; }
.footer p { margin-bottom: 10px; }
.footer__brand strong { color: rgba(248,244,236,.85); }
.footer__links a { transition: color .2s; }
.footer__links a:hover { color: var(--neon); }
.footer__legal { margin-top: 20px; font-size: 12px; max-width: 600px; margin-inline: auto; color: rgba(248,244,236,.35); }

/* ---------- Toast "acabou de comprar" ---------- */
.toast {
  position: fixed; right: 20px; bottom: 90px; z-index: 70;
  display: flex; align-items: center; gap: 12px; padding: 12px 18px 12px 12px;
  background: #fff; color: var(--texto); border-radius: 12px; box-shadow: 0 16px 40px -12px rgba(0,0,0,.35);
  font-size: 12px; max-width: 320px;
  transform: translateX(120%); opacity: 0; transition: transform .6s var(--ease), opacity .4s;
}
.toast.is-on { transform: none; opacity: 1; }
.toast strong { display: block; font-size: 14px; }
.toast span { color: var(--suave); }
.toast__avatar { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: #fff; background: var(--verde); }

/* ---------- CTA fixo (telemóvel) ---------- */
.sticky {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(13,26,18,.94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid rgba(34,197,94,.25); color: var(--creme);
  transform: translateY(110%); transition: transform .5s var(--ease);
}
.sticky.is-visible { transform: translateY(0); }
.sticky__price s { display: block; font-size: 12px; color: rgba(248,244,236,.45); }
.sticky__price strong { font-family: var(--display); font-size: 30px; line-height: 1; }
.sticky .btn { padding: 14px 20px; font-size: 15px; flex: 1; max-width: 260px; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal--delay { transition-delay: .2s; }
.reveal.is-in { opacity: 1; transform: none; }
.hero__copy .reveal:nth-child(2) { transition-delay: .08s; }
.hero__copy .reveal:nth-child(3) { transition-delay: .16s; }
.hero__copy .reveal:nth-child(4) { transition-delay: .24s; }
.hero__copy .reveal:nth-child(5) { transition-delay: .32s; }
.hero__copy .reveal:nth-child(6) { transition-delay: .4s; }
.cards .reveal:nth-child(3n+2), .testis .reveal:nth-child(3n+2), .scenarios .reveal:nth-child(4n+2) { transition-delay: .1s; }
.cards .reveal:nth-child(3n+3), .testis .reveal:nth-child(3n+3), .scenarios .reveal:nth-child(4n+3) { transition-delay: .2s; }
.scenarios .reveal:nth-child(4n+4) { transition-delay: .3s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Breakpoints ---------- */
@media (min-width: 640px) {
  .cards, .testis, .scenarios { grid-template-columns: repeat(2, 1fr); }
  .toast { bottom: 24px; }
}
@media (min-width: 960px) {
  .container { padding: 0 32px; }
  .hero__grid { grid-template-columns: 1.15fr .85fr; gap: 56px; }
  .cards, .testis { grid-template-columns: repeat(3, 1fr); }
  .scenarios { grid-template-columns: repeat(4, 1fr); }
  .detail { grid-template-columns: 1fr 1fr; gap: 64px; padding: 80px 0; }
  .detail__left { padding-left: 120px; }
  .detail__bignum { left: -4px; top: 72px; }
  .detail__right { padding-top: 12px; }
  .author { grid-template-columns: 1fr 1fr; gap: 72px; }
  .sticky { display: none; }
  .footer { padding-bottom: 56px; }
}
@media (max-width: 959px) {
  .detail__bignum { display: none; }
}

/* no telemóvel o título e os h2 quebram sozinhos */
@media (max-width: 639px) {
  .hero__title br, .head h2 br, .offer h2 br { display: none; }
  .hero__title { font-size: 40px; }
}

/* telemóvel: botões ocupam a largura e podem quebrar linha; colunas não esticam */
.hero__grid > *, .author > *, .detail > * { min-width: 0; }
@media (max-width: 639px) {
  .btn { white-space: normal; text-align: center; line-height: 1.3; }
  .hero__copy .btn--xl, .offer .btn--xl { width: 100%; }
  .price { gap: 16px; }
  .pill { white-space: normal; line-height: 1.4; }
}
.sticky .btn { white-space: nowrap; }
