/* Leilah C Porttela · linktree
   Mobile first. Breakpoints: 640px (tablet) and 1100px (desktop).
   Sizes follow the Paper artboards (430 / 768 / 1440). */

:root {
  --carmim: #8A0A30;
  --noir-carmim: #4A0818;
  --perola: #FBEEE6;
  --perola-card: #F3E2D7;
  --texto: #2A1A1D;
  --dourado: #C9965F;
  --dourado-claro: #F4D9BE;
  --estrela: #E4B584;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--noir-carmim);
  color: var(--perola);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; }
h1, h2, p, ul { margin: 0; padding: 0; }
ul { list-style: none; }
a { color: inherit; }

.page {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  padding-bottom: 72px;
}

/* Page background = the Paper background cut into three contiguous bands.
   Top and bottom keep their proportions (the suns never distort); only the
   plain middle band stretches vertically to match the page height. */
.bg {
  --top: url("/assets/bg-sm-top.webp?v=2");
  --mid: url("/assets/bg-sm-mid.webp?v=2");
  --bot: url("/assets/bg-sm-bot.webp?v=2");
  --top-ar: 860 / 1137;
  --bot-ar: 860 / 796;
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  pointer-events: none;
}
.bg__top, .bg__bot { flex: 0 1 auto; min-height: 0; background-repeat: no-repeat; background-size: 100% auto; }
.bg__top { aspect-ratio: var(--top-ar); background-image: var(--top); background-position: top center; }
.bg__bot { aspect-ratio: var(--bot-ar); background-image: var(--bot); background-position: bottom center; }
.bg__mid { flex: 1 1 0; min-height: 0; margin: -1px 0; background: var(--mid) center / 100% 100% no-repeat; }
.hero, .tags, .links, .closing { position: relative; z-index: 1; }

/* ---------- Language switcher ---------- */
.lang {
  position: absolute;
  top: max(14px, env(safe-area-inset-top));
  right: 14px;
  z-index: 10;
  display: flex;
  gap: 2px;
  padding: 3px;
  border-radius: 100px;
  background: rgba(40, 4, 12, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.25);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.lang__btn {
  min-width: 36px;
  height: 28px;
  padding: 0 9px;
  border: 0;
  border-radius: 100px;
  background: transparent;
  color: var(--perola);
  font: 600 11px/1 var(--sans);
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease;
}
.lang__btn:hover { background: rgba(255, 236, 224, 0.12); }
.lang__btn[aria-pressed="true"] { background: var(--perola); color: var(--carmim); }

/* ---------- Hero ---------- */
.hero {
  --photo-w: min(330px, 77vw);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 20px 24px;
}
.hero__visual {
  position: absolute;
  top: 0;
  left: 50%;
  width: min(430px, 100vw);
  transform: translateX(-50%);
  pointer-events: none;
}
.hero__rays {
  position: absolute;
  top: -10px;
  left: 0;
  width: 100%;
  height: auto;
  opacity: 0.7;
}
.hero__photo {
  position: relative;
  width: var(--photo-w);
  height: auto;
  margin: 6px auto 0;
}
.hero__text {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: calc(var(--photo-w) * 0.625);
}
.hero__logo { width: 224px; height: auto; }

.social {
  display: flex;
  gap: 14px;
  padding: 18px 0 20px;
}
.social__link {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 0 0 0.87px rgba(255, 255, 255, 0.31);
  transition: background-color .2s ease, transform .2s ease;
}
.social__link svg { fill: #fff; }
.social__link:hover { background: rgba(255, 255, 255, 0.24); transform: translateY(-1px); }

.hero__tagline {
  max-width: 330px;
  font: 400 37px/33px var(--serif);
  letter-spacing: -0.005em;
  text-align: center;
  color: var(--perola);
}

/* ---------- Tags carousel ---------- */
.tags {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.tags__track {
  --gap: 9px;
  display: flex;
  gap: var(--gap);
  width: max-content;
  animation: tags-scroll 28s linear infinite;
}
.tags:hover .tags__track { animation-play-state: paused; }
.tag {
  flex-shrink: 0;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font: 500 13.5px/16px var(--sans);
  letter-spacing: -0.02em;
  color: #fff;
  white-space: nowrap;
}
@keyframes tags-scroll {
  to { transform: translateX(calc(-50% - var(--gap) / 2)); }
}

/* ---------- Cards ---------- */
.links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 24px 20px 0;
}
.card {
  position: relative;
  display: flex;
  width: 100%;
  max-width: 390px;
  min-height: 200px;
  border-radius: 14px;
  overflow: hidden;
  background-size: cover;
  background-repeat: no-repeat;
}
.card--light {
  background-color: var(--perola-card);
  border: 1.5px solid #FFF3EA;
  box-shadow: 0 10px 30px rgba(20, 2, 8, 0.35);
  background-position: right center;
}
.card--dark {
  justify-content: flex-end;
  background-color: #3A0712;
  border: 1px solid rgba(214, 140, 110, 0.55);
  box-shadow: 0 10px 30px rgba(20, 2, 8, 0.45);
  background-position: left center;
}
/* Phones narrower than the 390px design: crop the side away from the text
   and lay a soft veil behind the copy so it never sits on the photo. */
.card--light { background-position: left center; }
.card--dark  { background-position: 15% center; }
.card--consultoria {
  background-image:
    linear-gradient(90deg, rgba(243, 226, 215, 0.92) 0, rgba(243, 226, 215, 0.75) 42%, rgba(243, 226, 215, 0) 60%),
    url("/assets/card-consultoria-sm.webp");
}
.card--feiras {
  background-image:
    linear-gradient(270deg, rgba(58, 7, 18, 0.7) 0, rgba(58, 7, 18, 0.45) 45%, rgba(58, 7, 18, 0) 62%),
    url("/assets/card-feiras-sm.webp");
}
.card--parcerias {
  background-image:
    linear-gradient(90deg, rgba(243, 226, 215, 0.92) 0, rgba(243, 226, 215, 0.75) 42%, rgba(243, 226, 215, 0) 60%),
    url("/assets/card-parcerias-sm.webp");
}

.card__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  width: 212px;
  padding: 15px 0 15px 22px;
}
.card--dark .card__content { width: min(218px, 100% - 146px); padding: 15px 14px 15px 0; }
.card--dark .card__title { font-size: clamp(16px, 4.8vw, 19.5px); }
.card--dark .btn--wrap { width: min(192px, 100%); }

.card__title {
  font: 400 19.5px/18.5px var(--serif);
  letter-spacing: -0.01em;
  color: var(--carmim);
}
.card--dark .card__title { color: var(--perola); }
.card__rule {
  display: block;
  width: 22px;
  height: 1.5px;
  margin: 9px 0;
  background: var(--dourado);
}
.card__lead {
  max-width: 190px;
  font: 400 11px/14.5px var(--sans);
  color: var(--texto);
}
.card--dark .card__lead { color: var(--perola); }
.hl { font-weight: 600; color: #A50D3B; }
.card--dark .hl { color: #F2C9A0; }

/* ---------- Buttons (pattern: "Botão 10") ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  height: 40px;
  margin-top: 12px;
  padding: 0 15px 0 18px;
  border-radius: 100px;
  text-decoration: none;
  color: var(--perola);
  font: 600 10px/12.5px var(--sans);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.btn__label { white-space: nowrap; }
.btn--wrap { width: min(192px, 100%); height: auto; min-height: 40px; padding-top: 7px; padding-bottom: 7px; gap: 10px; }
.btn--wrap .btn__label { white-space: normal; }
.btn__arrow {
  flex-shrink: 0;
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .2s ease;
}
.btn:hover .btn__arrow { transform: translate(2px, 2px); }
.btn--primary {
  background: var(--carmim);
  box-shadow: 0 6px 16px rgba(138, 10, 48, 0.25);
}
.btn--primary:hover { background: #9C0D37; box-shadow: 0 8px 22px rgba(138, 10, 48, 0.35); }
.btn--glass {
  background: rgba(255, 236, 224, 0.14);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3);
}
.btn--glass:hover { background: rgba(255, 236, 224, 0.22); }

:focus-visible { outline: 2px solid var(--estrela); outline-offset: 3px; }

/* ---------- Closing ---------- */
.closing {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 52px 24px 0;
}
.closing__phrase {
  font: 300 clamp(28px, 8.8vw, 34px)/1 var(--serif);
  letter-spacing: -0.015em;
  text-align: center;
  color: var(--dourado-claro);
  text-shadow: 0 2px 14px rgba(20, 2, 8, 0.55);
}
.horizon { display: flex; align-items: center; gap: 10px; }
.horizon__line { width: 52px; height: 1px; background: #D9A673; }
.horizon__star { width: 14px; height: 14px; fill: var(--estrela); }

/* ---------- Tablet ---------- */
@media (min-width: 640px) {
  .page { padding-bottom: 96px; }
  .bg {
    --top: url("/assets/bg-md-top.webp?v=2");
    --mid: url("/assets/bg-md-mid.webp?v=2");
    --bot: url("/assets/bg-md-bot.webp?v=2");
    --top-ar: 1536 / 1684;
    --bot-ar: 1536 / 1179;
  }
  .lang { top: 20px; right: 24px; }
  .lang__btn { min-width: 42px; height: 32px; font-size: 12px; }

  .hero { --photo-w: 480px; padding: 0 40px 36px; }
  .hero__visual { width: 768px; }
  .hero__rays { top: -14px; }
  .hero__photo { margin-top: 10px; }
  .hero__text { padding-top: 318px; }
  .hero__logo { width: 316px; }
  .social { gap: 16px; padding: 26px 0 28px; }
  .hero__tagline { max-width: 560px; font-size: 50px; line-height: 48px; letter-spacing: -0.01em; }

  .tags__track { --gap: 11px; animation-duration: 34s; }
  .tag { padding: 9px 18px; font-size: 16px; line-height: 18px; }

  .links { gap: 20px; padding-top: 40px; }
  .card { max-width: 640px; min-height: 298px; border-radius: 20px; }
  .card--light { background-position: right center; }
  .card--dark  { background-position: left center; }
  .card--consultoria { background-image: url("/assets/card-consultoria-md.webp"); }
  .card--feiras      { background-image: url("/assets/card-feiras-md.webp"); }
  .card--parcerias   { background-image: url("/assets/card-parcerias-md.webp"); }
  .card__content { width: 360px; padding: 24px 0 24px 40px; }
  .card--dark .card__content { width: 296px; padding: 24px 20px 24px 0; }
  .card__title { font-size: 33px; line-height: 31px; }
  .card--dark .card__title { font-size: 29px; line-height: 28px; }
  .card--dark .btn--wrap { width: 250px; }
  .card__rule { width: 32px; height: 2px; margin: 16px 0; }
  .card__lead { max-width: 280px; font-size: 16px; line-height: 22px; }
  .card--dark .card__lead { font-size: 15px; }

  .btn { height: 50px; margin-top: 20px; gap: 18px; padding: 0 20px 0 24px; font-size: 13px; line-height: 15.5px; }
  .btn--wrap { width: 250px; min-height: 50px; gap: 14px; }
  .btn__arrow { width: 15px; height: 15px; stroke-width: 2.3; }

  .closing { gap: 24px; padding-top: 80px; }
  .closing__phrase { font-size: 52px; line-height: 52px; }
  .horizon { gap: 14px; }
  .horizon__line { width: 80px; }
  .horizon__star { width: 18px; height: 18px; }
}

/* ---------- Desktop ---------- */
@media (min-width: 1100px) {
  .page { padding-bottom: 120px; }
  .bg {
    --top: url("/assets/bg-lg-top.webp?v=2");
    --mid: url("/assets/bg-lg-mid.webp?v=2");
    --bot: url("/assets/bg-lg-bot.webp?v=2");
    --top-ar: 2400 / 1804;
    --bot-ar: 2400 / 1263;
  }
  .lang { top: 28px; right: 40px; }

  .hero {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: min(1200px, 100% - 80px);
    min-height: 700px;
    margin: 0 auto;
    padding: 0;
  }
  .hero__visual {
    position: relative;
    left: auto;
    transform: none;
    flex-shrink: 0;
    width: 600px;
    height: 700px;
  }
  .hero__rays { top: -150px; left: -150px; width: 900px; opacity: 0.75; }
  .hero__photo { position: absolute; top: 60px; left: 10px; width: 600px; margin: 0; }
  .hero__text { width: 560px; padding-top: 20px; }
  .hero__logo { width: 360px; }
  .hero__tagline { order: 1; max-width: 560px; padding-top: 28px; font-size: 60px; line-height: 58px; letter-spacing: -0.015em; }
  .social { order: 2; padding: 36px 0 0; }

  .tags__track { --gap: 14px; animation-duration: 42s; }
  .tag { padding: 12px 22px; font-size: 20px; line-height: 22px; }

  .links { gap: 32px; padding-top: 88px; }
  .card { max-width: 1000px; min-height: 430px; border-radius: 28px; }
  .card--light { border-width: 2px; box-shadow: 0 24px 60px rgba(20, 2, 8, 0.45); }
  .card--dark { border-width: 1.5px; box-shadow: 0 24px 60px rgba(20, 2, 8, 0.5); }
  .card--consultoria { background-image: url("/assets/card-consultoria-lg.webp"); }
  .card--feiras      { background-image: url("/assets/card-feiras-lg.webp"); }
  .card--parcerias   { background-image: url("/assets/card-parcerias-lg.webp"); }
  .card__content { width: 540px; padding: 40px 0 40px 64px; }
  .card--dark .card__content { width: 470px; padding: 40px 40px 40px 0; }
  .card__title, .card--dark .card__title { font-size: 46px; line-height: 44px; }
  .card--dark .card__title { font-size: 44px; line-height: 43px; }
  .card__rule { width: 44px; margin: 24px 0; }
  .card__lead, .card--dark .card__lead { max-width: 400px; font-size: 21px; line-height: 30px; }

  .btn { height: 58px; margin-top: 32px; padding: 0 24px 0 30px; font-size: 15px; line-height: 18px; }
  .btn--wrap, .card--dark .btn--wrap { width: 320px; min-height: 58px; gap: 16px; }
  .btn__arrow { width: 17px; height: 17px; stroke-width: 2.2; }

  .closing { gap: 32px; padding-top: 120px; }
  .closing__phrase { font-size: 76px; line-height: 74px; letter-spacing: -0.02em; }
  .horizon { gap: 18px; }
  .horizon__line { width: 120px; }
  .horizon__star { width: 22px; height: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .tags__track { animation: none; }
  .btn, .btn__arrow, .social__link { transition: none; }
}
