.reveal {
  opacity: 0;

  transform: translateY(80px);

  transition: all 0.8s ease;
}

.reveal.active {
  opacity: 1;

  transform: translateY(0);
}

/* Laptop range: desktop styles are slightly too large here */
@media (max-width: 1200px) {
  .hero {
    padding: 50px 32px 90px;
  }

  .hero h1 {
    font-size: 58px;
  }

  .hero-image img {
    max-width: 520px;
  }

  .feature-grid {
    gap: 24px;
  }

  .steps {
    gap: 18px;
  }

  .step-card {
    width: 290px;
  }
}

@media (max-width: 992px) {
  .navbar {
    width: min(92%, 720px);
    margin: 14px auto;
    z-index: 10;
  }

  .nav-container {
    position: relative;
    width: 100%;
    height: 72px;
    padding: 0 20px;
  }

  .logo,
  .logo span {
    font-size: 1.65rem;
  }

  .logo {
    gap: 8px;
  }

  .nav-toggle {
    width: 48px;
    height: 48px;
    padding: 11px;
    border: 0;
    border-radius: 14px;
    background: #f8e6d7;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
  }

  .nav-toggle span {
    width: 100%;
    height: 2px;
    border-radius: 2px;
    background: var(--heading);
    transition:
      transform 0.25s ease,
      opacity 0.2s ease;
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .nav-toggle:focus-visible,
  .mobile-menu a:focus-visible {
    outline: 3px solid rgba(194, 139, 90, 0.45);
    outline-offset: 3px;
  }

  .mobile-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    padding: 22px;
    border: 1px solid #d9e5d7;
    border-radius: 20px;
    background: #eef4ec;
    box-shadow: var(--shadow);
    display: none;
  }

  .mobile-menu.is-open {
    display: block;
  }

  .nav-links,
  .nav-buttons {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .nav-links a,
  .nav-buttons a {
    display: block;
    width: 100%;
    padding: 12px 16px;
    text-align: center;
  }

  .nav-buttons {
    margin-top: 14px;
  }

  .hero {
    min-height: auto;
    padding: 64px 5% 80px;
    flex-direction: column;
    gap: 48px;
    text-align: center;
  }

  .hero-content,
  .hero-image {
    width: 100%;
  }

  .hero h1 {
    font-size: clamp(2.75rem, 9vw, 4.5rem);
  }

  .hero p {
    margin-right: auto;
    margin-left: auto;
  }

  .hero-buttons {
    justify-content: center;
    flex-wrap: wrap;
  }

  .hero-image img {
    width: min(100%, 520px);
  }

  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .steps {
    padding: 0 5%;
    flex-direction: column;
  }

  .step-card {
    width: min(100%, 520px);
  }

  .step-arrow {
    transform: rotate(90deg);
  }

  .about-container {
    flex-direction: column;
  }

  .about-image,
  .about-content {
    width: 100%;
  }

  .about-content {
    text-align: center;
  }

  .about-list {
    align-items: center;
  }
}

@media (max-width: 768px) {
  .hero {
    border-radius: var(--radius);
  }

  .hero::before,
  .hero::after {
    width: 200px;
    height: 200px;
    filter: blur(40px);
  }

  .features,
  .how-it-works,
  .about,
  .faq,
  .contact {
    padding-top: 72px;
    padding-bottom: 72px;
  }

  .section-title,
  .section-header {
    width: 90%;
    margin-right: auto;
    margin-left: auto;
  }

  .section-title {
    margin-bottom: 42px;
  }

  .section-title h2 {
    font-size: clamp(1.8rem, 7vw, 2.4rem);
    line-height: 1.25;
  }

  .section-header h2,
  .about-content h2 {
    font-size: clamp(1.7rem, 6.5vw, 2rem);
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .feature-card,
  .testimonial-card {
    width: 100%;
  }

  .about-container {
    gap: 44px;
  }

  .testimonial-grid {
    width: 90%;
    margin-right: auto;
    margin-left: auto;
  }

  .faq-question {
    gap: 18px;
    padding: 20px;
    font-size: 1rem;
    text-align: left;
  }

  .faq-question span {
    flex: 0 0 auto;
  }

  .faq-answer p {
    padding: 0 20px 20px;
  }
}

@media (max-width: 576px) {
  .navbar {
    width: calc(100% - 32px);
  }

  .nav-container {
    padding: 0 14px;
  }

  .logo,
  .logo span {
    font-size: 1.4rem;
  }

  .mobile-menu {
    padding: 18px;
  }

  .hero {
    padding: 44px 20px 64px;
    gap: 38px;
  }

  .hero-tag,
  .section-title span,
  .section-tag {
    padding: 9px 14px;
    font-size: 0.875rem;
  }

  .hero h1 {
    font-size: clamp(2.25rem, 11vw, 3.15rem);
    letter-spacing: -1px;
  }

  .hero p {
    font-size: 1rem;
    line-height: 1.7;
  }

  .hero-buttons {
    gap: 12px;
  }

  .hero-buttons a {
    width: 100%;
    min-height: 50px;
    padding: 13px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .container,
  .section-title,
  .section-header,
  .feedback-filters,
  .testimonial-grid,
  .faq-container {
    width: calc(100% - 40px);
  }

  .feedback-filters {
    margin-right: auto;
    margin-left: auto;
  }

  .feedback-filter {
    flex: 1 1 calc(33.333% - 10px);
    padding-right: 12px;
    padding-left: 12px;
  }

  .feature-card,
  .step-card,
  .testimonial-card,
  .contact-card {
    padding: 30px 22px;
  }

  .steps {
    padding: 0 20px;
  }

  .step-card h3 {
    font-size: 1.6rem;
  }

  .about-content p,
  .testimonial-card p {
    font-size: 1rem;
  }

  .about-list {
    align-items: flex-start;
    text-align: left;
  }

  .about-item {
    font-size: 1rem;
  }

  .testimonial-card .user {
    align-items: flex-start;
  }

  .stars {
    font-size: 1.35rem;
  }

  .feedback-empty {
    width: calc(100% - 40px);
    padding: 28px 20px;
  }

  .contact {
    padding-right: 20px;
    padding-left: 20px;
  }

  .contact-container {
    grid-template-columns: minmax(0, 1fr);
    margin-top: 42px;
  }

  footer {
    padding: 28px 20px;
  }
}

@media (max-width: 360px) {
  .feedback-filter {
    flex-basis: calc(50% - 10px);
  }
}

/* Corner leaf decorations: scale down as screens shrink so they add
   texture without crowding the content */
@media (max-width: 992px) {
  .features::before,
  .features::after,
  .how-it-works::before,
  .how-it-works::after,
  .about::before,
  .about::after,
  .feedback::before,
  .feedback::after,
  .faq::before,
  .faq::after,
  .contact::before,
  .contact::after,
  footer::before,
  footer::after {
    width: 90px;
    height: 118px;
    opacity: 0.1;
  }
}

@media (max-width: 576px) {
  /* Keep just one accent per section on small phones — a corner on
     every side of every section reads as clutter at this width */
  .features::after,
  .how-it-works::after,
  .about::after,
  .feedback::after,
  .faq::after,
  .contact::after,
  footer::after {
    display: none;
  }

  .features::before,
  .how-it-works::before,
  .about::before,
  .feedback::before,
  .faq::before,
  .contact::before,
  footer::before {
    width: 64px;
    height: 84px;
    opacity: 0.09;
  }
}
