/* =========================================================
   Wyrdlands — Classic Roll
   Estilos compartilhados: landing (index.html) e obrigado (obrigado.html)
   ========================================================= */

:root {
  --bg: #05060c;
  --ink: #f2eadb;
  --mute: #a79f92;
  --ember: #e8622a;
  --ember-2: #ff8a3d;
  --ember-ink: #1a0a02;
  --line: #2a2c3a;
  --card: #10121f;
  --card-hot: #1a1210;
  --ok-bg: #1f3a26;
  --ok-ink: #8fe0a6;

  --f-display: "Cinzel", Georgia, serif;
  --f-body: "Cormorant Garamond", Georgia, serif;
  --f-ui: "Space Grotesk", system-ui, sans-serif;

  --gutter: clamp(24px, 5.5vw, 80px);
  --maxw: 1280px;
  --radius: 12px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: clamp(18px, 1.4vw, 20px);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  isolation: isolate;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

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

/* ---------- Fundo estrelado (do arquivo de referência) ---------- */
.wyrdlands-stars {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 45%, #0a0b17, #030407 82%);
}
.wyrdlands-stars > i {
  position: absolute;
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  background: var(--tint);
  box-shadow: 0 0 var(--glow) var(--tint);
  opacity: calc(var(--peak) * 0.68);
  animation: wyrdlands-shimmer var(--time) var(--delay) ease-in-out infinite alternate;
}
@keyframes wyrdlands-shimmer {
  from { opacity: calc(var(--peak) * 0.16); }
  to   { opacity: var(--peak); }
}
@media (max-width: 600px) {
  .wyrdlands-stars > i:nth-child(n+106) { display: none; }
}

/* ---------- Tipografia ---------- */
.eyebrow {
  font-family: var(--f-ui);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ember-2);
  margin: 0;
}
h1, h2, h3 {
  font-family: var(--f-display);
  font-weight: 700;
  line-height: 1.1;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(36px, 4.6vw, 64px); }
h2 { font-size: clamp(28px, 3.1vw, 44px); line-height: 1.15; }
h3 { font-size: clamp(20px, 1.7vw, 24px); }
.lead { color: var(--mute); font-size: clamp(19px, 1.7vw, 24px); line-height: 1.4; margin: 0; }
.muted { color: var(--mute); }
.center { text-align: center; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--f-ui);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.02em;
  text-decoration: none;
  text-align: center;
  border-radius: 6px;
  padding: 18px 28px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.btn:focus-visible { outline: 2px solid var(--ember-2); outline-offset: 3px; }

.btn--primary {
  color: var(--ember-ink);
  background: linear-gradient(90deg, var(--ember-2), var(--ember));
  box-shadow: 0 8px 32px rgba(232, 98, 42, 0.45);
  padding: 22px 36px;
  font-size: clamp(16px, 1.4vw, 20px);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(232, 98, 42, 0.6); }

.btn--ghost {
  color: var(--ink);
  border: 1px solid rgba(242, 234, 219, 0.35);
  background: transparent;
}
.btn--ghost:hover { background: rgba(242, 234, 219, 0.08); border-color: rgba(242, 234, 219, 0.6); }

.btn--block { width: 100%; }
.btn--sm { padding: 12px 20px; font-size: 14px; }

/* ---------- Nav ---------- */
.nav { padding: 24px 0; }
.nav .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.brand img { width: 48px; height: 48px; border-radius: 50%; }
.brand span { font-family: var(--f-display); font-weight: 700; font-size: 20px; letter-spacing: 0.18em; }
.nav__links { display: flex; align-items: center; gap: 36px; }
.nav__links a:not(.btn) { font-family: var(--f-ui); font-weight: 500; font-size: 15px; color: var(--mute); text-decoration: none; }
.nav__links a:not(.btn):hover { color: var(--ink); }
.nav__toggle { display: none; background: none; border: 0; padding: 8px; margin: -8px; color: var(--ink); cursor: pointer; }
.nav__toggle:focus-visible { outline: 2px solid var(--ember-2); outline-offset: 2px; }

/* ---------- Seções ---------- */
.section { padding: clamp(56px, 8vw, 110px) 0; }
.section__head { display: grid; gap: 18px; justify-items: center; text-align: center; max-width: 900px; margin: 0 auto clamp(32px, 4vw, 48px); }
.section__head .lead { max-width: 720px; }

/* ---------- Hero ---------- */
.hero { padding: clamp(16px, 5vw, 72px) 0 clamp(48px, 8vw, 120px); }
.hero .container { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.hero__text { display: grid; gap: 28px; justify-items: start; }
.hero__text .lead { max-width: 560px; }
.hero__ctas { display: grid; gap: 14px; justify-items: start; }
.hero__perks { font-family: var(--f-ui); font-size: 14px; color: var(--mute); margin: 0; }
.hero__free { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.hero__free em { color: var(--mute); }
.hero__media { display: flex; justify-content: center; }
.hero__img { width: auto; max-height: 640px; filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 80px rgba(232, 98, 42, 0.3)); }

/* ---------- Vídeo (carrega o YouTube só ao clicar) ---------- */
.video {
  position: relative;
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(242, 234, 219, 0.15);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  background: #000;
}
.video img, .video iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.video__play {
  position: absolute; inset: 0; width: 100%; height: 100%;
  display: grid; place-items: center;
  background: rgba(0, 0, 0, 0.15);
  border: 0; cursor: pointer; padding: 0;
}
.video__play svg { width: clamp(64px, 8vw, 96px); height: auto; transition: transform 0.2s ease; filter: drop-shadow(0 6px 24px rgba(232, 98, 42, 0.5)); }
.video__play:hover svg { transform: scale(1.08); }
.video__play:focus-visible { outline: 3px solid var(--ember-2); outline-offset: -3px; }

/* ---------- Cards "o que vem" ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.feature img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.feature__body { padding: 20px 28px 28px; display: grid; gap: 10px; }
.feature__body p { margin: 0; color: var(--mute); }

/* ---------- Ofertas ---------- */
.offers { display: flex; justify-content: center; align-items: center; gap: 32px; }
.offer {
  display: grid; gap: 16px; align-content: start;
  width: 400px; padding: 40px;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
}
.offer--hot {
  width: 480px;
  background: var(--card-hot);
  border: 2px solid var(--ember);
  box-shadow: 0 0 60px rgba(232, 98, 42, 0.3);
}
.offer__tag { justify-self: start; font-family: var(--f-ui); font-weight: 700; font-size: 12px; letter-spacing: 0.16em; color: var(--ember-ink); background: var(--ember); border-radius: 4px; padding: 6px 12px; }
.offer__price { font-family: var(--f-display); font-weight: 700; font-size: 44px; line-height: 1; }
.offer--hot .offer__price { color: var(--ember-2); font-size: 56px; }
.offer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; color: var(--mute); }
.offer .btn { margin-top: 8px; }

/* ---------- CTA final ---------- */
.final { text-align: center; display: grid; gap: 24px; justify-items: center; }
.final__icon { width: 140px; height: 140px; border-radius: 50%; }
.final .lead { font-style: italic; }
.link-quiet { font-family: var(--f-ui); font-weight: 500; font-size: 15px; color: var(--mute); }
.link-quiet:hover { color: var(--ink); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 32px 0; }
.footer .container { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-family: var(--f-ui); font-size: 14px; color: var(--mute); }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--ink); }

/* ---------- Barra fixa de compra (mobile) ---------- */
.sticky-cta {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(5, 6, 12, 0.92);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--line);
  transform: translateY(110%);
  transition: transform 0.3s ease;
}
.sticky-cta.is-visible { transform: translateY(0); }
.sticky-cta .btn { width: 100%; padding: 16px 20px; font-size: 16px; }

/* =========================================================
   Página de obrigado / apoio
   ========================================================= */
.thanks { display: grid; gap: 24px; justify-items: center; text-align: center; padding: clamp(24px, 4vw, 60px) 0 clamp(40px, 4vw, 56px); }
.thanks .lead { max-width: 760px; }
.thanks .video { max-width: 880px; }
.badge-ok { font-family: var(--f-ui); font-weight: 700; font-size: 12px; letter-spacing: 0.16em; color: var(--ok-ink); background: var(--ok-bg); border-radius: 4px; padding: 8px 14px; }

.support { padding: clamp(24px, 4vw, 48px) 0 clamp(64px, 8vw, 120px); display: grid; gap: 40px; }
.support__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 392px)); justify-content: center; gap: 28px; }
.plan {
  display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center;
  padding: 40px 32px 36px;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
}
.plan img { width: 160px; height: 160px; border-radius: 50%; }
.plan p { margin: 0; color: var(--mute); font-size: 19px; line-height: 1.35; }
.plan__price { font-family: var(--f-display); font-weight: 700; font-size: 36px; color: var(--ember-2); line-height: 1; margin-top: auto; }
.plan__period { font-family: var(--f-ui); font-weight: 500; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mute); margin-top: -8px; }
.plan__perk { width: 100%; font-weight: 600; font-size: 17px; padding: 10px 14px; border-radius: 8px; background: rgba(232, 98, 42, 0.1); border: 1px solid rgba(232, 98, 42, 0.35); }
.plan .btn { width: 100%; }
.support__note { font-style: italic; color: var(--mute); text-align: center; margin: 0; }

/* =========================================================
   Responsivo
   ========================================================= */
@media (max-width: 1100px) {
  .offers { flex-direction: column-reverse; align-items: stretch; }
  .offer, .offer--hot { width: 100%; max-width: 560px; margin: 0 auto; }
}

@media (max-width: 900px) {
  .nav { position: relative; z-index: 60; }
  .nav__toggle { display: block; }
  .nav__links {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px var(--gutter) 24px;
    background: rgba(5, 6, 12, 0.97);
    border-bottom: 1px solid var(--line);
  }
  .nav__links.is-open { display: flex; }
  .nav__links a:not(.btn) { padding: 14px 0; font-size: 17px; color: var(--ink); border-bottom: 1px solid var(--line); }
  .nav__links .btn { margin-top: 16px; }
  .hero .container { grid-template-columns: 1fr; gap: 24px; }
  .hero__media { order: -1; }
  .hero__img { max-height: 380px; }
  .hero__ctas, .hero__ctas .btn { width: 100%; justify-items: stretch; }
  .hero__perks { text-align: center; }
  .features { grid-template-columns: 1fr; }
  .support__grid { grid-template-columns: minmax(0, 520px); }
  .sticky-cta { display: block; }
  body.has-sticky { padding-bottom: 88px; }
}

@media (max-width: 600px) {
  .hide-sm { display: none; }
  .section__head { justify-items: start; text-align: left; }
  .brand img { width: 36px; height: 36px; }
  .brand span { font-size: 16px; }
  .hero__free { width: 100%; }
  .hero__free em { display: none; }
  .hero__free .btn { width: 100%; }
  .offer { padding: 28px 24px; }
  .offer--hot .offer__price { font-size: 44px; }
  .final .btn { width: 100%; }
  .footer .container { justify-content: center; text-align: center; }
  .plan { padding: 32px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .wyrdlands-stars > i { animation: none; }
  .btn, .sticky-cta, .video__play svg { transition: none; }
}

/* ---------- Chamada para o vídeo ---------- */
.watch-link {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--f-ui); font-size: 15px; color: var(--ink); text-decoration: none;
  padding: 8px 18px 8px 8px; border-radius: 999px;
  background: rgba(242, 234, 219, 0.06); border: 1px solid rgba(242, 234, 219, 0.18);
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.watch-link:hover { background: rgba(232, 98, 42, 0.12); border-color: rgba(232, 98, 42, 0.5); }
.watch-link:focus-visible { outline: 2px solid var(--ember-2); outline-offset: 3px; }
.watch-link strong { color: var(--ember-2); font-weight: 700; }
.watch-link__icon {
  flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--ember); color: var(--ember-ink);
  animation: watch-pulse 2.4s ease-out infinite;
}
.watch-link__icon svg { width: 16px; height: 16px; margin-left: 2px; }
@keyframes watch-pulse {
  0% { box-shadow: 0 0 0 0 rgba(232, 98, 42, 0.55); }
  70%, 100% { box-shadow: 0 0 0 12px rgba(232, 98, 42, 0); }
}
.video__play { align-content: center; gap: 16px; }
.video__label {
  font-family: var(--f-ui); font-weight: 700; font-size: clamp(13px, 1.3vw, 16px); letter-spacing: 0.04em;
  color: var(--ink); background: rgba(5, 6, 12, 0.75); padding: 8px 16px; border-radius: 999px;
}
@media (max-width: 600px) { .watch-link { font-size: 14px; } .video__label { display: none; } }
@media (prefers-reduced-motion: reduce) { .watch-link__icon { animation: none; } }
