/* Web Fonts */
@font-face {
  font-family: 'Fredoka One';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src:
    url('/fonts/FredokaOne-Regular.woff2') format('woff2'),
    url('/fonts/FredokaOne-Regular.woff') format('woff');
}

@font-face {
  font-family: 'Raleway';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src:
    url('/fonts/Raleway-Regular.woff2') format('woff2'),
    url('/fonts/Raleway-Regular.woff') format('woff');
}

@font-face {
  font-family: 'Raleway';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src:
    url('/fonts/Raleway-LightItalic.woff2') format('woff2'),
    url('/fonts/Raleway-LightItalic.woff') format('woff');
}

@font-face {
  font-family: 'Raleway';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src:
    url('/fonts/Raleway-Bold.woff2') format('woff2'),
    url('/fonts/Raleway-Bold.woff') format('woff');
}

/* Design Tokens & Custom Properties */
:root {
  --color-bg-hero: #f4f4f4;
  --color-text-hero-title: #000000;
  --color-accent-purple: #6f64ff;
  --color-text-hero-desc: #242424;
  --color-pill-bg: #e8e8e8;
  --color-pill-border: #d2d2d2;
  --color-brands-bg: #d8d8d8;
  --color-brands-border: #494949;
  --color-cta-gradient: linear-gradient(143deg, #049b1b 0%, #10c02a 100%);
  --color-cta-halo: rgba(4, 155, 27, 0.7);
  --color-arrow-circle: #ff61bb;
  --color-arrow-hover: #f02d98;
  --color-arrow-chevron: #f4f4f4;
  --color-focus-ring: #20d5ec;
  --color-footer-bg: #000000;
  --color-text-white: #ffffff;
  --color-dark-surface: #111827;

  --font-headline: 'Fredoka One', cursive, system-ui, sans-serif;
  --font-body: 'Raleway', sans-serif;
  --font-footer: Arial, Helvetica, sans-serif;
}

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

html,
body {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  color: var(--color-text-hero-desc);
  background-color: var(--color-bg-hero);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

button {
  font: inherit;
  border: none;
  background: none;
  cursor: pointer;
  padding: 0;
  margin: 0;
}

:focus-visible {
  outline: 3px solid var(--color-focus-ring);
  outline-offset: 3px;
}

/* Pulsing Halo Animation for CTA */
@keyframes pulse-halo {
  0% {
    box-shadow: 0 0 0 0 rgba(4, 155, 27, 0.7);
  }
  70% {
    box-shadow: 0 0 0 20px rgba(4, 155, 27, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(4, 155, 27, 0);
  }
}

/* Reduced Motion Override */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}


  .hero-section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    background-color: var(--color-bg-hero, #f4f4f4);
    background-image: var(--hero-desktop-bg);
    background-position: top center;
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 0;
    box-sizing: border-box;
    overflow: hidden;
  }

  .hero-container {
    width: 100%;
    max-width: 1200px;
    margin-inline: auto;
    padding-inline: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    box-sizing: border-box;
  }

  .hero-copy {
    width: 58%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    box-sizing: border-box;
    z-index: 2;
  }

  .hero-title {
    margin: 0;
    font-family: var(--font-headline);
    font-size: 56px;
    line-height: 56px;
    font-weight: 400;
    color: var(--color-text-hero-title, #000000);
    text-align: left;
  }

  .title-highlight {
    color: var(--color-accent-purple, #6f64ff);
  }

  .hero-description {
    margin: 0;
    width: 80%;
    font-family: var(--font-body);
    font-size: 22px;
    line-height: 33px;
    font-weight: 400;
    color: var(--color-text-hero-desc, #242424);
    text-align: left;
  }

  .hero-cta-wrapper {
    width: 100%;
    display: flex;
    justify-content: flex-start;
  }

  .hero-art-mobile {
    display: none;
  }

  /* Tablet: 768px - 1024px */
  @media (min-width: 768px) and (max-width: 1024px) {
    .hero-section {
      min-height: 100vh;
      padding: 30px;
      background-image: url('/images/BG-URUBO-DA-PROMO-TAB-01.webp');
      background-size: cover;
      background-position: top center;
    }

    .hero-container {
      max-width: calc(100% - 60px);
      flex-direction: column;
      align-items: center;
      text-align: center;
    }

    .hero-copy {
      width: 100%;
      align-items: center;
      text-align: center;
    }

    .hero-title {
      font-size: 56px;
      line-height: 56px;
      text-align: center;
    }

    .hero-description {
      width: 80%;
      font-size: 22px;
      line-height: 33px;
      text-align: center;
    }

    .hero-cta-wrapper {
      justify-content: center;
    }

    .hero-art-mobile {
      display: block;
      width: 594px;
      max-width: 100%;
      margin: 0 auto;
    }

    .hero-art-mobile img {
      width: 594px;
      height: 708px;
      max-width: 100%;
      height: auto;
      margin: 0 auto;
    }
  }

  /* Mobile: <= 767px */
  @media (max-width: 767px) {
    .hero-section {
      min-height: 700px;
      padding: 30px 20px;
      background-image: url('/images/BG-URUBO-DA-PROMO-TAB-01.webp');
      background-size: cover;
      background-position: top center;
    }

    .hero-container {
      max-width: calc(100% - 40px);
      flex-direction: column;
      align-items: center;
      text-align: center;
    }

    .hero-copy {
      width: 100%;
      align-items: center;
      text-align: center;
    }

    .hero-title {
      font-size: 26px;
      line-height: 30px;
      text-align: center;
    }

    .hero-description {
      width: 100%;
      font-size: 16px;
      line-height: 24px;
      text-align: center;
    }

    .hero-cta-wrapper {
      justify-content: center;
    }

    .hero-art-mobile {
      display: block;
      width: 100%;
      max-width: 350px;
      margin: 0 auto;
    }

    .hero-art-mobile img {
      width: 100%;
      height: auto;
      margin: 0 auto;
    }
  }

  /* Mobile Title Specific Bracket Scales (from visual contract) */
  @media (max-width: 361px) {
    .hero-title {
      font-size: 26px;
      line-height: 30px;
    }
  }

  @media (min-width: 362px) and (max-width: 389px) {
    .hero-title {
      font-size: 27px;
      line-height: 30px;
    }
  }

  @media (min-width: 390px) and (max-width: 420px) {
    .hero-title {
      font-size: 28px;
      line-height: 30px;
    }
  }

  @media (min-width: 421px) and (max-width: 440px) {
    .hero-title {
      font-size: 32px;
      line-height: 30px;
    }
  }

  @media (min-width: 441px) and (max-width: 767px) {
    .hero-title {
      font-size: 26px;
      line-height: 30px;
    }
  }


  .community-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    background-color: var(--color-pill-bg, #e8e8e8);
    border: 1px solid var(--color-pill-border, #d2d2d2);
    border-radius: 30px;
    padding: 9px 20px;
    width: 470px;
    height: 48px;
    box-sizing: border-box;
    margin: 0;
  }

  .badge-icon {
    width: 90px;
    height: 28px;
    object-fit: contain;
    flex-shrink: 0;
  }

  .badge-text {
    font-family: var(--font-body, 'Raleway', sans-serif);
    font-size: 14px;
    line-height: 21px;
    font-weight: 400;
    font-style: italic;
    color: var(--color-text-hero-title, #000000);
    white-space: nowrap;
  }

  @media (max-width: 1024px) {
    .community-badge {
      margin-inline: auto;
    }
  }

  @media (min-width: 421px) and (max-width: 767px) {
    .community-badge {
      width: 90%;
      max-width: 380px;
    }
  }

  @media (max-width: 767px) {
    .community-badge {
      padding: 9px 12px;
      gap: 6px;
      width: 100%;
      max-width: 350px;
      height: 44px;
    }

    .badge-icon {
      width: 54px;
      height: auto;
    }

    .badge-text {
      font-size: 10px;
      line-height: 15px;
      white-space: normal;
      text-align: left;
    }
  }

  @media (max-width: 360px) {
    .community-badge {
      max-width: 320px;
      height: 50px;
    }
  }


  .whatsapp-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 490px;
    max-width: 100%;
    height: 62px;
    padding: 20px 40px;
    border-radius: 90px;
    background: var(
      --color-cta-gradient,
      linear-gradient(143deg, #049b1b 0%, #10c02a 100%)
    );
    color: var(--color-text-white, #ffffff);
    font-family: var(--font-body, 'Raleway', sans-serif);
    font-size: 22px;
    line-height: 22px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    box-sizing: border-box;
    cursor: pointer;
    animation: pulse-halo 2s infinite;
    transition: transform 0.2s ease;
    transform: translateY(0);
    scale: 1;
  }

  .whatsapp-cta:hover {
    transform: translateY(-3px);
  }

  .cta-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }

  .whatsapp-icon {
    width: 24px;
    height: 24px;
  }

  .cta-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  @media (max-width: 767px) {
    .whatsapp-cta {
      width: 293px;
      height: 54px;
      padding: 16px 20px;
      font-size: 14px;
      line-height: 14px;
      gap: 8px;
    }

    .whatsapp-icon {
      width: 18px;
      height: 18px;
    }
  }

  @media (prefers-reduced-motion: reduce) {
    .whatsapp-cta {
      animation: none !important;
      transition: none !important;
      transform: none !important;
    }
    .whatsapp-cta:hover {
      transform: none !important;
    }
  }


  .brand-strip-section {
    width: 100%;
    background-color: var(--color-brands-bg, #d8d8d8);
    border-top: 2px dashed var(--color-brands-border, #494949);
    padding: 20px 0;
    min-height: 87px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
  }

  .brand-strip-container {
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
  }

  .brand-marquee-track {
    display: flex;
    flex-direction: row;
    align-items: center;
    width: max-content;
    will-change: transform;
    animation: marquee-scroll 20s linear infinite;
  }

  .brand-group {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
    padding-right: 20px;
  }

  .brand-item {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    height: 44px;
  }

  .brand-item img {
    max-height: 44px;
    width: auto;
    max-width: 168px;
    object-fit: contain;
    filter: none;
  }

  /* Hover and Focus Pause */
  .brand-strip-container:hover .brand-marquee-track,
  .brand-strip-container:focus-within .brand-marquee-track,
  .brand-strip-container[data-paused='true'] .brand-marquee-track {
    animation-play-state: paused;
  }

  /* Short list handling */
  .brand-strip-container.is-short-list {
    justify-content: center;
  }

  .brand-strip-container.is-short-list .brand-marquee-track {
    animation: none !important;
    transform: none !important;
    width: 100%;
    justify-content: center;
  }

  .brand-strip-container.is-short-list .clone-group {
    display: none !important;
  }

  .brand-strip-container.is-short-list .brand-pause-button {
    display: none !important;
  }

  /* Marquee Keyframes */
  @keyframes marquee-scroll {
    0% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(-50%);
    }
  }

  /* Pause / Resume Accessibility Button */
  .brand-pause-button {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    opacity: 0.6;
    transition: opacity 0.2s ease;
  }

  .brand-pause-button:hover,
  .brand-pause-button:focus-visible {
    opacity: 1;
    outline: 2px solid var(--color-focus-ring);
  }

  .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  @media (prefers-reduced-motion: reduce) {
    .brand-marquee-track {
      animation: none !important;
      animation-play-state: paused !important;
      transform: none !important;
    }
    .brand-pause-button {
      display: none !important;
    }
    .brand-strip-container {
      overflow-x: auto;
      justify-content: center;
    }
    .clone-group {
      display: none !important;
    }
  }


  .social-proof-section {
    width: 100%;
    background-color: var(--color-accent-purple, #6f64ff);
    background-image: url('/images/SETA-PARA-BAIXO-SEC-02.svg');
    background-position: top center;
    background-repeat: no-repeat;
    background-size: 180px auto;
    padding: 120px 0;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
  }

  .proof-container {
    width: 100%;
    max-width: 1200px;
    margin-inline: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    box-sizing: border-box;
  }

  .proof-title {
    margin: 0;
    font-family: var(--font-headline);
    font-size: 56px;
    line-height: 56px;
    font-weight: 400;
    color: var(--color-text-white, #ffffff);
    text-align: center;
    width: 100%;
  }

  .proof-description {
    margin: -10px 0 0 0;
    width: 41%;
    font-family: var(--font-body);
    font-size: 22px;
    line-height: 33px;
    font-weight: 400;
    color: var(--color-text-white, #ffffff);
    text-align: center;
  }

  /* Carousel Section (95% width, 30px lateral arrow reservation) */
  .carousel-wrapper {
    position: relative;
    width: 95%;
    max-width: 1140px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
  }

  .carousel-viewport {
    width: calc(100% - 60px);
    overflow: hidden;
    position: relative;
  }

  .carousel-track {
    display: flex;
    flex-direction: row;
    gap: 10px;
    will-change: transform;
    width: max-content;
  }

  .carousel-slide {
    flex-shrink: 0;
    width: 353px;
    display: flex;
    justify-content: center;
  }

  .carousel-slide img {
    width: 345px;
    height: 387px;
    border-radius: 8px;
    object-fit: cover;
    display: block;
  }

  /* Arrows: 44px min touch target, 32px visual SVG */
  .carousel-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    background: transparent;
    border: none;
    padding: 0;
  }

  .carousel-nav-btn:hover svg circle {
    fill: var(--color-arrow-hover, #f02d98);
  }

  .prev-btn {
    left: -7px;
  }

  .next-btn {
    right: -7px;
  }

  /* Pause / Resume button */
  .carousel-pause-btn {
    position: absolute;
    bottom: -35px;
    right: 20px;
    background: rgba(0, 0, 0, 0.4);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s ease;
  }

  .carousel-pause-btn:hover,
  .carousel-pause-btn:focus-visible {
    opacity: 1;
    outline: 2px solid var(--color-focus-ring);
  }

  /* Short list handling */
  .carousel-wrapper.is-short-list .carousel-nav-btn,
  .carousel-wrapper.is-short-list .carousel-pause-btn {
    display: none !important;
  }

  .carousel-wrapper.is-short-list .carousel-viewport {
    width: 100%;
  }

  .carousel-wrapper.is-short-list .carousel-track {
    justify-content: center;
    width: 100%;
    transform: none !important;
  }

  .proof-cta-wrapper {
    margin-top: 10px;
    display: flex;
    justify-content: center;
    width: 100%;
  }

  .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  /* Tablet: 768px - 1024px */
  @media (min-width: 768px) and (max-width: 1024px) {
    .social-proof-section {
      padding: 80px 30px;
    }

    .proof-title {
      font-size: 48px;
      line-height: 48px;
    }

    .proof-description {
      width: 100%;
      font-size: 22px;
      line-height: 33px;
    }

    .carousel-slide {
      width: calc((100% - 10px) / 2);
    }
  }

  /* Mobile: <= 767px */
  @media (max-width: 767px) {
    .social-proof-section {
      padding: 80px 20px;
    }

    .proof-title {
      font-size: 26px;
      line-height: 32px;
      width: 58%;
    }

    .proof-description {
      width: 86%;
      font-size: 16px;
      line-height: 24px;
    }

    .carousel-wrapper {
      width: 100%;
    }

    .carousel-slide {
      width: 100%;
    }

    .carousel-slide img {
      width: 100%;
      max-width: 345px;
      height: auto;
      margin: 0 auto;
    }
  }

  /* Mobile title bracket scales */
  @media (max-width: 361px) {
    .proof-title {
      font-size: 26px;
      line-height: 32px;
    }
  }

  @media (min-width: 362px) and (max-width: 389px) {
    .proof-title {
      font-size: 27px;
      line-height: 32px;
    }
  }

  @media (min-width: 390px) and (max-width: 420px) {
    .proof-title {
      font-size: 28px;
      line-height: 32px;
    }
  }

  @media (min-width: 421px) and (max-width: 440px) {
    .proof-title {
      font-size: 32px;
      line-height: 32px;
    }
  }

  @media (min-width: 441px) and (max-width: 767px) {
    .proof-title {
      font-size: 26px;
      line-height: 32px;
    }
  }

  @media (prefers-reduced-motion: reduce) {
    .carousel-track {
      transition: none !important;
    }
    .carousel-pause-btn {
      display: none !important;
    }
  }


  .site-footer {
    width: 100%;
    background-color: var(--color-footer-bg, #000000);
    padding: 40px 0;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
  }

  .footer-container {
    width: 100%;
    max-width: 1200px;
    margin-inline: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
    box-sizing: border-box;
  }

  .footer-rights {
    margin: 0;
    font-family: var(--font-footer, Arial, Helvetica, sans-serif);
    font-size: 12px;
    line-height: 18px;
    letter-spacing: 5px;
    color: var(--color-text-white, #ffffff);
    text-transform: uppercase;
  }

  .footer-links {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 16px;
  }

  .footer-link {
    font-family: var(--font-footer, Arial, Helvetica, sans-serif);
    font-size: 11px;
    line-height: 16px;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
    transition: color 0.2s ease;
  }

  .footer-link:hover,
  .footer-link:focus-visible {
    color: #ffffff;
  }

  @media (max-width: 1024px) {
    .site-footer {
      padding: 40px 30px;
    }
  }

  @media (max-width: 767px) {
    .site-footer {
      padding: 50px 30px;
    }

    .footer-rights {
      font-size: 10px;
      line-height: 15px;
      letter-spacing: 3.5px;
    }

    .footer-link {
      font-size: 10px;
      line-height: 14px;
      letter-spacing: 1.5px;
    }
  }


  .consent-banner {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    max-width: 480px;
    width: calc(100% - 40px);
    background: #ffffff;
    border: 1px solid var(--color-pill-border, #d2d2d2);
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    padding: 16px;
    box-sizing: border-box;
    font-family: var(--font-body, 'Raleway', sans-serif);
  }

  .consent-banner[hidden] {
    display: none;
  }

  .consent-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .consent-text {
    margin: 0;
    font-size: 14px;
    line-height: 20px;
    color: var(--color-text-hero-desc, #242424);
  }

  .consent-actions {
    display: flex;
    flex-direction: row;
    gap: 10px;
    justify-content: flex-end;
  }

  .consent-btn {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
  }

  .consent-accept {
    background-color: var(--color-accent-purple, #6f64ff);
    color: #ffffff;
    border: 1px solid var(--color-accent-purple, #6f64ff);
  }

  .consent-accept:hover,
  .consent-accept:focus-visible {
    background-color: #554ae0;
  }

  .consent-reject {
    background-color: #f4f4f4;
    color: #242424;
    border: 1px solid #d2d2d2;
  }

  .consent-reject:hover,
  .consent-reject:focus-visible {
    background-color: #e5e5e5;
  }

  @media (max-width: 440px) {
    .consent-banner {
      left: 10px;
      right: 10px;
      bottom: 10px;
      width: calc(100% - 20px);
      padding: 14px;
    }

    .consent-actions {
      flex-direction: column;
    }

    .consent-btn {
      width: 100%;
      text-align: center;
    }
  }
