:root {
  --ink: #ffffff;
  --muted: rgb(255 255 255 / 64%);
  --line: rgb(255 255 255 / 14%);
  --surface: #0b0b0b;
  --canvas: #000000;
  --wa: #25d366;
  --wa-hover: #3ce884;
  --wa-ink: #04200f;
  --radius-lg: 1.5rem;
  --radius-md: 1rem;
  --page-padding: clamp(1.25rem, 4vw, 3.25rem);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--canvas);
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--canvas);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--wa);
  outline-offset: 4px;
}

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.skip-link {
  position: fixed;
  z-index: 20;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.75rem 1rem;
  transform: translateY(-180%);
  border-radius: 0.5rem;
  background: #fff;
  color: #000;
  text-decoration: none;
}

.skip-link:focus {
  transform: translateY(0);
}

.backdrop {
  position: fixed;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  background: var(--canvas);
  pointer-events: none;
}

.backdrop::before,
.backdrop::after {
  position: absolute;
  inset: 0;
  content: "";
}

.backdrop::before {
  background-image: url("../assets/marcelo-ferri-hero.jpg");
  background-position: 50% 0;
  background-repeat: no-repeat;
  background-size: auto 95%;
  filter: grayscale(0.2) contrast(1.05) brightness(0.94);
}

.backdrop::after {
  background:
    linear-gradient(
      180deg,
      rgb(0 0 0 / 38%) 0%,
      rgb(0 0 0 / 14%) 16%,
      rgb(0 0 0 / 42%) 30%,
      rgb(0 0 0 / 88%) 44%,
      var(--canvas) 58%
    );
}

.site-header,
.site-footer,
.hero,
.legal-page {
  position: relative;
  z-index: 1;
  width: min(100%, 76rem);
  margin-inline: auto;
}

main {
  position: relative;
  z-index: 1;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.35rem var(--page-padding);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  line-height: 1;
  text-decoration: none;
}

.wordmark::before {
  width: 1.5rem;
  height: 1.5rem;
  border: 1px solid rgb(255 255 255 / 38%);
  border-radius: 50%;
  box-shadow: inset 0 0 0 0.3rem #fff;
  content: "";
}

.header-caption {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero {
  display: flex;
  min-height: calc(100svh - 4.2rem);
  align-items: flex-end;
  justify-content: center;
  padding: 2rem var(--page-padding) 6svh;
}

.hero-copy {
  max-width: 40rem;
  margin-inline: auto;
  text-align: center;
  text-shadow: 0 0.15rem 1.4rem rgb(0 0 0 / 55%);
}

h1,
h2,
p {
  margin-top: 0;
}

h1,
h2 {
  letter-spacing: -0.055em;
  text-wrap: balance;
}

h1 {
  margin-bottom: 1.2rem;
  font-size: clamp(2.35rem, 8vw, 4.5rem);
  line-height: 1.01;
}

.hero-copy h1 {
  max-width: 20ch;
  margin: 0 auto 1rem;
  font-size: clamp(1.85rem, 5.4vw, 2.85rem);
  letter-spacing: -0.036em;
  line-height: 1.08;
}

h2 {
  max-width: 14ch;
  margin-bottom: 1.25rem;
  font-size: clamp(2rem, 6vw, 3.8rem);
  line-height: 1.03;
}

.hero-description {
  max-width: 33rem;
  margin: 0 auto 1.5rem;
  color: rgb(255 255 255 / 76%);
  font-size: clamp(0.98rem, 1.6vw, 1.06rem);
}

.benefits {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.55rem;
  margin: 0 0 1.7rem;
  padding: 0;
  list-style: none;
  text-align: left;
}

.benefits li {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.92rem;
  font-weight: 650;
}

.benefits li::before {
  display: grid;
  width: 1.15rem;
  height: 1.15rem;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: #000;
  content: "✓";
  font-size: 0.78rem;
  font-weight: 900;
}

.cta {
  display: inline-flex;
  min-height: 3.7rem;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.9rem 1.5rem;
  border: 1px solid transparent;
  border-radius: 0.85rem;
  background: var(--wa);
  box-shadow: 0 0.9rem 2.4rem rgb(37 211 102 / 22%);
  color: var(--wa-ink);
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: -0.005em;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  text-shadow: none;
  transition: transform 160ms ease, background-color 160ms ease, opacity 160ms ease;
}

.cta:hover {
  transform: translateY(-2px);
  background: var(--wa-hover);
}

.cta-icon {
  width: 1.3rem;
  height: 1.3rem;
  flex: 0 0 auto;
  fill: currentColor;
}

.hero-cta {
  width: min(100%, 27rem);
}

.cta.is-loading {
  pointer-events: none;
  opacity: 0.8;
}

.access-note {
  margin: 0.85rem auto 0;
  color: rgb(255 255 255 / 58%);
  font-size: 0.82rem;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.8rem var(--page-padding) calc(1.8rem + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.82rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-links a {
  text-decoration-color: rgb(255 255 255 / 35%);
  text-underline-offset: 0.22em;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.legal-page {
  padding: clamp(2rem, 7vw, 5rem) var(--page-padding) 5rem;
}

.legal-article {
  max-width: 46rem;
  margin-inline: auto;
}

.legal-back {
  display: inline-flex;
  margin-bottom: 2.5rem;
  color: var(--wa);
  font-size: 0.86rem;
  font-weight: 800;
  text-underline-offset: 0.24em;
}

.legal-article h1 {
  max-width: 14ch;
  margin-bottom: 1rem;
  font-size: clamp(2.35rem, 8vw, 4.5rem);
  color: var(--ink);
}

.legal-intro {
  margin-bottom: 2.75rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.legal-article section {
  margin-top: 2.25rem;
  padding-top: 2.25rem;
  border-top: 1px solid var(--line);
}

.legal-article h2 {
  max-width: none;
  margin-bottom: 0.8rem;
  font-size: 1.35rem;
  letter-spacing: -0.025em;
}

.legal-article p,
.legal-article li {
  color: var(--muted);
}

.legal-article ul {
  padding-left: 1.2rem;
}

.placeholder {
  padding: 0.05rem 0.32rem;
  border-radius: 0.25rem;
  background: rgb(255 255 255 / 12%);
  color: #fff;
  font-weight: 700;
}

@media (max-width: 719px) {
  .header-caption {
    display: none;
  }
}

@media (min-width: 720px) {
  .backdrop::before {
    background-position: 50% 0;
    background-size: auto 100%;
  }

  .backdrop::after {
    background:
      linear-gradient(
        180deg,
        rgb(0 0 0 / 40%) 0%,
        rgb(0 0 0 / 12%) 18%,
        rgb(0 0 0 / 44%) 32%,
        rgb(0 0 0 / 88%) 46%,
        var(--canvas) 62%
      ),
      linear-gradient(
        90deg,
        var(--canvas) 0%,
        rgb(0 0 0 / 0%) 24%,
        rgb(0 0 0 / 0%) 76%,
        var(--canvas) 100%
      );
  }

  .benefits {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.6rem 1.5rem;
    margin-bottom: 1.9rem;
  }

  .hero {
    min-height: calc(100svh - 4.4rem);
    padding: 3.5rem var(--page-padding) 6svh;
  }
}

@media (min-width: 1100px) {
  .hero {
    padding-bottom: 7svh;
  }

  .hero-copy {
    max-width: 44rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
