* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
/* ======= Ajuste aqui para as cores da sua marca ======= */
:root {
  --primary-dark: #4a0996;
  --primary-light: #7230c2;
  --footer-text-color: #4a4645;
  --primary: #560bad;
  --light: #faf5ea;
  --dark: #282120;
  --gray: #64748b;
  --gray-light: #e2e8f0;
  --gradient: linear-gradient(
    135deg,
    var(--primary) 0%,
    var(--primary-light) 100%
  );
  --shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.15);
  --white: #ffffff;
  --transition: all 0.3s ease;
  --border-radius: 1rem;
}
html {
  scroll-behavior: smooth;
  overflow-y: auto;
}
html,
body {
  overflow-x: hidden;
  height: auto;
  width: 100%;
}
/* ======= Estilos ======= */
body {
  margin: 0;
  font-family: sans-serif;
  background: var(--light);
  color: var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
  /* height: 100vh; */
  font-family: 'Figtree', sans-serif;
  line-height: 1.6;
  color: var(--primary);
}
#hoop-container {
  background: #fff;
  /* border: 2px solid var(--primary); */
  border-radius: 8px;
  padding: 2rem;
  box-shadow: var(--shadow);
  text-align: center;
  width: 100%;
  max-width: 800px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  @media screen and (max-width: 600px) {
    max-width: 100%;
    /* margin: 0 2rem; */
  }
}
#desire-input {
  width: 100%;
  padding: 1rem;
  margin-bottom: 1rem;
  border: 1px solid var(--dark);
  border-radius: 1rem;
  font-size: 1.5rem;
  outline: none;
  min-height: 2rem;
  color: var(--dark);
  border: solid 1px var(--dark);
  font-family: 'Figtree';
  font-weight: 500;
  /* transition: var(--transition); */

  &:focus {
    outline: none;
    border-color: var(--primary);
    border: solid 2px var(--primary);
  }
}
#hoop-display {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  min-height: 2em;
  color: var(--dark);
}
#hoop-counter {
  font-size: 3rem;
  margin-bottom: 0;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  .num-container {
    display: inline-block;
    position: relative;
    width: 3ch;
    text-align: right;
    max-width: 3ch; /* cabe até “108” sem pular linha */
    height: 1.6em; /* mesma altura da fonte */
    overflow: hidden;
    vertical-align: bottom;
  }
}

/* estilos-base para cada número */
.counter-num {
  position: absolute;
  right: 0;
}

/* animações */
.counter-num.in {
  animation: slide-in 0.3s ease forwards;
}
.counter-num.out {
  animation: slide-out 0.3s ease forwards;
}

@keyframes slide-in {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
@keyframes slide-out {
  from {
    transform: translateY(0);
    opacity: 1;
  }
  to {
    transform: translateY(-100%);
    opacity: 0;
  }
}

button:disabled {
  background: #ccc;
  cursor: not-allowed;
}

.buttons-container {
  display: flex;
  gap: 2rem;
  width: 100%;
  align-items: center;
  justify-content: center;
  margin-top: 1rem;

  @media screen and (max-width: 768px) {
    gap: 1rem;
    flex-direction: column;
  }
}

.btn {
  display: inline-block;
  align-items: center;
  gap: 8px;
  padding: 20px 40px;
  border-radius: var(--border-radius);
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  font-size: 1rem;
  position: relative;
  overflow: hidden;
  font-size: 1.2rem;
  min-width: 200px;
  text-align: center;
  min-height: 4rem;

  @media screen and (max-width: 768px) {
    font-size: 1rem;
    width: 100%;
    /* max-width: 70%; */
  }

  &.btn-primary-cta {
    background: var(--gradient);
    color: var(--white);
    /* padding: 20px 40px; */
    font-weight: 700;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(86, 11, 173, 0.3);
    &:hover {
      transform: translateY(-3px);
      box-shadow: 0 15px 40px rgba(86, 11, 173, 0.4);
    }
  }

  /* Section Outline Button */
  &.btn-outline-section {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    border-radius: 50px;
    /* font-weight: 800; */
    /* padding: 20px 40px; */
    &:hover {
      background: var(--primary);
      color: var(--white);
      transform: translateY(-2px);
    }
  }
}

.app-container {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 3rem;
  padding: 3rem 0;
  @media screen and (max-width: 768px) {
    gap: 2rem;
    padding: 3rem 2rem;
  }
}
.logo {
  max-width: 220px;
  img {
    width: 100%;
  }
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--primary);
}

h1 {
  font-size: 3.5rem;
}
h2 {
  font-size: 2.5rem;
}
h3 {
  font-size: 2rem;
}
h4 {
  font-size: 1.5rem;
}
.app-title {
  text-align: center;
  @media screen and (max-width: 768px) {
    /* margin: 0 2rem; */
    font-size: 2.5rem;
  }
}
.app-description {
  font-size: 1.2rem;
  line-height: 2;
  font-weight: 400;
  color: var(--dark);
  /* text-align: center; */
  max-width: 800px;
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  background-color: var(--white);
  .highlight {
    color: var(--primary);
    font-weight: 600;
  }
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(200px, 1fr));
  gap: 4rem;
  padding: 0 4rem;
  @media screen and (max-width: 768px) {
    grid-template-columns: 1fr;
    padding: 0;
  }
}
