/* ═══════════════════════════════════════════════════════════════════════════
   Buyandhold Brasil — Landing Page
   Estética: Apple/Tesla — limpo como vidro, escuro, tipografia Inter
   Paleta: #000 (BG) · #fff (Texto) · #111 / #1a1a1a (Superfícies)
   Mobile-first
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─────────────────────── TOKENS ─────────────────────── */
:root {
  --bg:           #000000;
  --surface:      #111111;
  --surface-2:    #161616;
  --surface-3:    #1c1c1c;
  --white:        #ffffff;
  --gray-100:     #e5e5e5;
  --gray-300:     #a3a3a3;
  --gray-500:     #737373;
  --gray-700:     #404040;
  --border:       rgba(255, 255, 255, 0.07);
  --border-light: rgba(255, 255, 255, 0.15);

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;

  --radius:    10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --t-fast:   150ms;
  --t-smooth: 280ms;

  --container: 1120px;
  --gutter:    1.25rem;
}

/* ─────────────────────── RESET ─────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--white);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img  { display: block; max-width: 100%; height: auto; }
a    { color: inherit; text-decoration: none; }
ul   { list-style: none; }
em   { font-style: normal; }

/* ─────────────────────── LAYOUT ─────────────────────── */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ─────────────────────── BUTTONS ─────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  padding: 0.75rem 1.75rem;
  border-radius: 980px; /* pill — estilo Apple */
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
  transition:
    background-color var(--t-fast) var(--ease),
    color            var(--t-fast) var(--ease),
    border-color     var(--t-fast) var(--ease),
    opacity          var(--t-fast) var(--ease),
    transform        var(--t-fast) var(--ease);
}

.btn:active    { transform: scale(0.97); }
.btn:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 3px;
}

.btn--primary {
  background: var(--white);
  color: var(--bg);
  border-color: var(--white);
}
.btn--primary:hover { opacity: 0.88; }

.btn--outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.35);
}
.btn--outline:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.6);
}

.btn--ghost {
  background: transparent;
  color: var(--white);
  border-color: transparent;
  font-size: 0.875rem;
}
.btn--ghost:hover { color: var(--gray-300); }

.btn--large {
  font-size: 1rem;
  font-weight: 500;
  padding: 0.875rem 2.25rem;
}

.btn--full { width: 100%; }

/* ─────────────────────── SECTION PATTERNS ─────────────────────── */
.section-eyebrow {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-bottom: 0.75rem;
}

.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-heading {
  font-size: clamp(2rem, 6vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--white);
}

.section-sub {
  margin-top: 0.875rem;
  font-size: 1rem;
  color: var(--gray-300);
  line-height: 1.65;
}

/* ─────────────────────── HEADER ─────────────────────── */
.header {
  position: fixed;
  top: 0;
  inset-inline: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 48px;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  flex-shrink: 0;
}

.nav__logo-img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 4px;
}

.nav__brand {
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--white);
}

/* ─────────────────────── HERO ─────────────────────── */
.hero {
  min-height: 60svh;
  display: flex;
  align-items: center;
  padding-top: 48px;
}

.hero__inner {
  padding-block: 1.5rem 0;
  text-align: center;
  max-width: 720px;
  margin-inline: auto;
}

.hero__eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-bottom: 0.75rem;
}

.hero__heading {
  font-size: clamp(3rem, 12vw, 6.5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.0;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.hero__slogan {
  font-size: clamp(1.0625rem, 3vw, 1.375rem);
  font-weight: 300;
  color: var(--gray-300);
  letter-spacing: -0.01em;
  margin-bottom: 1.25rem;
  line-height: 1.5;
}

.hero__cta-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

.hero__tip {
  font-size: 0.8125rem;
  color: var(--gray-500);
  line-height: 1.5;
  max-width: 320px;
  text-align: center;
}

.hero__tip span { vertical-align: middle; }

.hero__stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--surface);
  max-width: 480px;
  margin-inline: auto;
}

.hero__stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem 0.75rem;
  gap: 0.125rem;
}

.hero__stat-divider {
  width: 1px;
  height: 2.5rem;
  background: var(--border);
  flex-shrink: 0;
}

.hero__stat-value {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--white);
  line-height: 1;
}

.hero__stat-label {
  font-size: 0.6875rem;
  color: var(--gray-500);
  letter-spacing: 0.01em;
}

/* ─────────────────────── VITRINE ─────────────────────── */
.vitrine {
  padding-block: 2.5rem 4rem;
  background: var(--bg);
}

.category {
  margin-bottom: 5rem;
}

.category:last-child { margin-bottom: 0; }

.category__header {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.category__num {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--gray-700);
  padding-top: 0.25rem;
  flex-shrink: 0;
}

.category__name {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 0.4rem;
}

.category__desc {
  font-size: 0.9375rem;
  color: var(--gray-300);
  line-height: 1.55;
}

/* VIDEOS GRID */
.videos-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

/* VIDEO CARD */
.video-card {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

/* VIDEO WRAP — Responsive 16:9 */
.video-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: border-color var(--t-smooth) var(--ease);
}

.video-wrap:hover { border-color: var(--border-light); }

.video-wrap__iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: var(--radius-lg);
}

/* Placeholder visível enquanto o src está em about:blank */
.video-wrap__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  pointer-events: none;
}

/* Esconde o placeholder quando o iframe tiver um vídeo real carregado
   (o iframe não ativa load com about:blank da mesma forma, então usamos
    a classe .has-video que você pode adicionar via JS ou remover manualmente) */
.video-wrap.has-video .video-wrap__placeholder { display: none; }

.video-wrap__play {
  font-size: 2rem;
  color: var(--gray-700);
  line-height: 1;
}

.video-wrap__hint {
  font-size: 0.75rem;
  color: var(--gray-700);
  letter-spacing: 0.02em;
  text-align: center;
  padding-inline: 1rem;
}

/* VIDEO THUMBNAIL LINK (para vídeos de membros que não permitem embed) */
.video-thumb-link {
  display: block;
  text-decoration: none;
}

.video-wrap--thumb {
  cursor: pointer;
}

.video-wrap--thumb:hover { border-color: var(--border-light); }

.video-wrap__thumb-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-smooth) var(--ease), opacity var(--t-smooth) var(--ease);
}

.video-thumb-link:hover .video-wrap__thumb-img {
  transform: scale(1.03);
  opacity: 0.85;
}

.video-wrap__play-btn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: opacity var(--t-smooth) var(--ease);
}

.video-wrap__play-btn svg {
  width: 64px;
  height: auto;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5));
  transition: transform var(--t-fast) var(--ease);
}

.video-thumb-link:hover .video-wrap__play-btn svg {
  transform: scale(1.1);
}

.video-wrap__yt-badge {
  position: absolute;
  bottom: 0.625rem;
  right: 0.625rem;
  z-index: 3;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  background: rgba(0,0,0,0.7);
  color: var(--white);
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  backdrop-filter: blur(4px);
}

/* VIDEO CAPTION */
.video-card__caption {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.video-card__tag {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-500);
}

.video-card__title {
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--white);
}

/* ─────────────────────── PLANOS ─────────────────────── */
.planos {
  padding-block: 5rem;
  background: var(--surface-2);
  border-top: 1px solid var(--border);
}

.plans-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  max-width: 820px;
  margin-inline: auto;
  margin-bottom: 1.75rem;
}

/* PLAN CARD */
.plan {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: relative;
  transition:
    border-color var(--t-smooth) var(--ease),
    box-shadow   var(--t-smooth) var(--ease);
}

.plan:hover {
  border-color: var(--border-light);
  box-shadow: 0 8px 40px rgba(0,0,0,0.4);
}

/* Featured plan */
.plan--featured {
  border-color: rgba(255,255,255,0.22);
  background: var(--surface-3);
}

.plan--featured:hover {
  border-color: rgba(255,255,255,0.45);
}

.plan__badge {
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  color: var(--bg);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.25rem 0.875rem;
  border-radius: 0 0 var(--radius) var(--radius);
  white-space: nowrap;
}

.plan__top { display: flex; flex-direction: column; gap: 0.625rem; }

.plan__name {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--white);
}

.plan__price {
  display: flex;
  align-items: baseline;
  gap: 0.125rem;
  line-height: 1;
}

.plan__currency {
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--gray-300);
  align-self: flex-start;
  padding-top: 0.35rem;
}

.plan__value {
  font-size: 3.25rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--white);
  line-height: 1;
}

.plan__cents {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.plan__period {
  font-size: 0.9375rem;
  color: var(--gray-500);
  margin-left: 0.25rem;
}

.plan__billing {
  font-size: 0.75rem;
  color: var(--gray-500);
  line-height: 1.4;
}

.plan__features {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
}

.plan__features li {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-size: 0.9375rem;
  color: var(--gray-300);
  line-height: 1.5;
}

.plan__features li strong {
  color: var(--white);
  font-weight: 500;
}

.plan__check {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--white);
  margin-top: 0.125rem;
}

.plans__note {
  text-align: center;
  font-size: 0.8125rem;
  color: var(--gray-500);
  max-width: 420px;
  margin-inline: auto;
  line-height: 1.55;
}

/* ─────────────────────── PROVA SOCIAL ─────────────────────── */
.proof {
  padding-block: 5rem;
  background: var(--bg);
  text-align: center;
}

.proof__top {
  margin-bottom: 3rem;
}

.proof__testimonials {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  max-width: 960px;
  margin-inline: auto;
  text-align: left;
}

.testimonial {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition:
    border-color var(--t-smooth) var(--ease),
    transform    var(--t-smooth) var(--ease);
}

.testimonial:hover {
  border-color: var(--border-light);
  transform: translateY(-2px);
}

/* Depoimentos em imagem */
.testimonial--img {
  padding: 0;
  overflow: hidden;
}

.testimonial--img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: var(--radius-lg);
  transition: transform var(--t-smooth) var(--ease), opacity var(--t-smooth) var(--ease);
}

.testimonial--img:hover img {
  transform: scale(1.02);
  opacity: 0.9;
}

.testimonial__author {
  font-style: normal;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--gray-500);
}

/* ─────────────────────── CTA FINAL ─────────────────────── */
.cta-final {
  padding-block: 6rem;
  background: var(--surface-2);
  border-top: 1px solid var(--border);
}

.cta-final__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.25rem;
}

.cta-final__heading {
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.1;
  color: var(--white);
}

.cta-final__sub {
  font-size: 1.0625rem;
  color: var(--gray-300);
  margin-bottom: 0.5rem;
}

/* ─────────────────────── FOOTER ─────────────────────── */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding-block: 2.5rem;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  text-align: center;
}

.footer__logo-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  opacity: 0.55;
  transition: opacity var(--t-fast) var(--ease);
}

.footer__logo-link:hover { opacity: 1; }

.footer__logo {
  width: 30px;
  height: 30px;
  object-fit: contain;
  border-radius: 4px;
}

.footer__brand {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--white);
}

.footer__copy {
  font-size: 0.8125rem;
  color: var(--gray-700);
  letter-spacing: 0.01em;
}

.footer__links {
  display: flex;
  gap: 1.5rem;
}

.footer__links a {
  font-size: 0.8125rem;
  color: var(--gray-700);
  transition: color var(--t-fast) var(--ease);
}

.footer__links a:hover { color: var(--white); }

/* ═══════════════════════════════════════════════════════
   TABLET (≥ 600px)
   ═══════════════════════════════════════════════════════ */
@media (min-width: 600px) {
  :root { --gutter: 2rem; }

  .videos-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .proof__testimonials {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ═══════════════════════════════════════════════════════
   DESKTOP (≥ 768px)
   ═══════════════════════════════════════════════════════ */
@media (min-width: 768px) {
  :root { --gutter: 2.5rem; }

  .nav { height: 52px; }

  .plans-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .proof__testimonials {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer__inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

/* ═══════════════════════════════════════════════════════
   WIDE (≥ 1024px)
   ═══════════════════════════════════════════════════════ */
@media (min-width: 1024px) {
  :root { --gutter: 3rem; }
}

/* ═══════════════════════════════════════════════════════
   REDUCED MOTION
   ═══════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}
