:root {
  color-scheme: dark;
  --text: #ffffff;
  --ink: #111111;
  --aqua: #64c9c7;
  --aqua-dark: #3cb5b2;
  --panel: #ffffff;
  --soft: rgba(255, 255, 255, 0.9);
  --shadow: 0 18px 54px rgba(0, 0, 0, 0.32);
  --bg-image: url("assets/forest-bg.png");
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  font-family: Nunito, Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: #10261f;
}

.font-nunito {
  font-family: Nunito, Inter, system-ui, sans-serif;
}

.font-quicksand {
  font-family: Quicksand, Nunito, system-ui, sans-serif;
}

.font-manrope {
  font-family: Manrope, Inter, system-ui, sans-serif;
}

.font-inter {
  font-family: Inter, system-ui, sans-serif;
}

.font-system {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body::before {
  position: fixed;
  inset: -5%;
  z-index: -3;
  background: var(--bg-image) center / cover no-repeat;
  content: "";
  animation: forest-drift 24s ease-in-out infinite alternate;
  transform-origin: center;
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(rgba(4, 18, 15, 0.2), rgba(4, 18, 15, 0.28)),
    linear-gradient(90deg, rgba(0, 0, 0, 0.36), transparent 22%, transparent 78%, rgba(0, 0, 0, 0.36));
  content: "";
}

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

button,
input {
  font: inherit;
}

.video-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body:has(.video-bg)::before {
  display: none;
}

.page-shell {
  position: relative;
  width: min(100%, 600px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 48px 20px 36px;
}

.share-button {
  position: absolute;
  top: 38px;
  right: 18px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.18);
  color: #fff;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: transform 160ms ease, background 160ms ease;
}

.share-button:hover,
.share-button:focus-visible {
  background: rgba(0, 0, 0, 0.3);
  outline: none;
  transform: translateY(-1px);
}

.share-button svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.share-button.is-copied::after {
  position: absolute;
  right: 0;
  top: 46px;
  min-width: 108px;
  border-radius: 999px;
  padding: 7px 10px;
  background: #fff;
  color: #111;
  content: "Link copiado";
  font-size: 12px;
  font-weight: 650;
  box-shadow: var(--shadow);
}

.profile {
  display: grid;
  grid-template-columns: 78px 1fr;
  align-items: center;
  gap: 18px;
  margin-bottom: 20px;
}

.avatar {
  width: 78px;
  height: 78px;
  border: 2px solid rgba(255, 255, 255, 0.88);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
  box-shadow: var(--shadow);
  object-fit: cover;
}

h1 {
  margin: 0 0 12px;
  font-size: 25px;
  font-weight: 650;
  line-height: 1;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.38);
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.social-links a {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
}

.social-links svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: #fff;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.45));
}

.category-list {
  display: grid;
  gap: 24px;
}

.category {
  display: grid;
  gap: 12px;
}

.category summary {
  display: grid;
  grid-template-columns: 1fr 22px;
  align-items: center;
  min-height: 54px;
  padding: 0 20px;
  border-radius: 18px;
  background: var(--panel);
  color: var(--ink);
  box-shadow: var(--shadow);
  cursor: pointer;
  font-size: 17px;
  font-weight: 650;
  list-style: none;
  text-align: center;
}

.category summary::-webkit-details-marker {
  display: none;
}

.chevron {
  position: relative;
  width: 18px;
  height: 18px;
}

.chevron::before,
.chevron::after {
  position: absolute;
  top: 8px;
  width: 10px;
  height: 2px;
  border-radius: 999px;
  background: var(--ink);
  content: "";
  transition: transform 220ms ease;
}

.chevron::before {
  left: 1px;
  transform: rotate(-45deg);
}

.chevron::after {
  right: 1px;
  transform: rotate(45deg);
}

.category:not([open]) .chevron::before {
  transform: rotate(45deg);
}

.category:not([open]) .chevron::after {
  transform: rotate(-45deg);
}

.category-links {
  display: grid;
  gap: 16px;
  overflow: hidden;
  transition: height 260ms ease, opacity 220ms ease, transform 220ms ease;
  will-change: height, opacity, transform;
}

.category:not([open]) .category-links {
  height: 0;
  opacity: 0;
  transform: translateY(-4px);
}

.product-link {
  display: grid;
  grid-template-columns: 58px 1fr 58px;
  align-items: center;
  min-height: 66px;
  padding: 9px 18px 9px 14px;
  border-radius: 18px;
  background: var(--aqua);
  box-shadow: var(--shadow);
  transition: transform 160ms ease, background 160ms ease;
}

.product-link:hover,
.product-link:focus-visible {
  background: var(--aqua-dark);
  outline: none;
  transform: translateY(-2px);
}

.thumb {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 50%;
  background: var(--soft);
  color: #298b88;
  font-size: 13px;
  font-weight: 650;
  overflow: hidden;
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-copy {
  display: grid;
  justify-items: center;
  gap: 3px;
  min-width: 0;
  padding-inline: 8px;
  text-align: center;
}

.product-copy strong {
  max-width: 100%;
  overflow-wrap: anywhere;
  font-size: 16px;
  font-weight: 650;
  line-height: 1.15;
}

.product-copy small {
  font-size: 12px;
  font-weight: 650;
}

.subscribe-card {
  margin-top: 24px;
  padding: 22px 20px 20px;
  border-radius: 18px;
  background: var(--panel);
  color: var(--ink);
  box-shadow: var(--shadow);
  text-align: center;
}

.subscribe-card h2 {
  margin: 0 0 8px;
  font-size: 19px;
  font-weight: 650;
}

.subscribe-card p {
  margin: 0;
  color: #202020;
  line-height: 1.4;
}

.subscribe-form {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.subscribe-form input,
.subscribe-form button {
  width: 100%;
  min-height: 48px;
  border-radius: 999px;
}

.hp-field {
  position: absolute;
  left: -10000px;
  width: 1px !important;
  height: 1px !important;
  min-height: 1px !important;
  opacity: 0;
  pointer-events: none;
}

.subscribe-form input {
  border: 2px solid var(--ink);
  padding: 0 16px;
  background: #fff;
  color: var(--ink);
}

.subscribe-form button {
  border: 0;
  background: var(--ink);
  color: #fff;
  cursor: pointer;
  font-weight: 650;
}

.affiliate-note {
  margin: 18px auto 0;
  max-width: 46ch;
  color: rgba(255, 255, 255, 0.84);
  font-size: 12px;
  line-height: 1.45;
  text-align: center;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}

@media (max-width: 480px) {
  .page-shell {
    padding: 38px 14px 28px;
  }

  .share-button {
    top: 30px;
    right: 14px;
  }

  .profile {
    grid-template-columns: 70px 1fr;
    gap: 14px;
  }

  .avatar {
    width: 70px;
    height: 70px;
  }

  .product-link {
    grid-template-columns: 50px 1fr 18px;
    padding-inline: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body::before {
    animation: none;
  }

  .category-links,
  .chevron::before,
  .chevron::after,
  .product-link {
    transition: none;
  }
}

@keyframes forest-drift {
  0% {
    background-position: 48% 50%;
    transform: scale(1);
  }

  45% {
    background-position: 52% 48%;
    transform: scale(1.035);
  }

  100% {
    background-position: 50% 53%;
    transform: scale(1.07);
  }
}
