/* Responsive breakpoints */

/* Tablet */
@media (max-width: 960px) {
  .features {
    grid-template-columns: repeat(2, 1fr);
    max-width: 560px;
  }
}

/* Large phones / small tablets */
@media (max-width: 768px) {
  /* Stack demo layout vertically on mobile */
  .demo-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .demo-layout .feedback-panel {
    margin-left: 0;
    margin-top: 40px;
    width: 100%;
    max-width: 390px;
  }

  .screenshots-section {
    padding: 40px 0;
  }

  .screenshots-section h2 {
    font-size: 26px;
    margin-bottom: 28px;
  }

  .screenshots-wrapper {
    padding: 0 16px;
  }

  .screenshot-card {
    width: 100%;
    padding: 0 20px;
  }

  .screenshot-card-inner {
    max-width: 276px;
  }

  /* Hide arrows on mobile -- swipe instead */
  .screenshots-arrow {
    display: none;
  }

  /* Show dots on mobile */
  .carousel-dots {
    display: flex;
  }

  .btn-fullscreen {
    display: flex;
  }

  .demo-hint-mobile {
    display: block;
  }
  .hero {
    padding: 60px 20px 48px;
  }

  h1 {
    font-size: 32px;
    letter-spacing: -0.5px;
  }

  h1 br {
    display: none;
  }

  .subtitle {
    font-size: 16px;
  }

  .subtitle br {
    display: none;
  }

  .features {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    padding: 40px 20px;
  }

  .feature {
    padding: 20px 16px;
  }

  .feature h3 {
    font-size: 16px;
  }

  .feature p {
    font-size: 13px;
  }

  .demo-section {
    padding: 40px 20px 60px;
  }

  .demo-section h2 {
    font-size: 26px;
  }

  .demo-hint {
    margin-bottom: 28px;
  }

  .phone-frame {
    width: 320px;
    height: 693px;
    border-radius: 42px;
  }

  .phone-frame iframe {
    border-radius: 38px;
  }

  .phone-notch {
    width: 130px;
    height: 28px;
  }
}

/* Small phones */
@media (max-width: 440px) {
  .demo-layout .feedback-panel {
    max-width: 100%;
  }

  .screenshots-section {
    padding: 32px 0;
  }

  .screenshots-section h2 {
    font-size: 22px;
    margin-bottom: 20px;
  }

  .screenshots-wrapper {
    padding: 0 12px;
  }

  .screenshot-card-inner {
    max-width: 230px;
  }

  .hero {
    padding: 48px 16px 36px;
  }

  .logo {
    margin-bottom: 24px;
  }

  .logo-icon {
    font-size: 28px;
  }

  .logo-text {
    font-size: 34px;
  }

  h1 {
    font-size: 26px;
  }

  .subtitle {
    font-size: 15px;
    margin-bottom: 28px;
  }

  .btn-primary {
    padding: 12px 28px;
    font-size: 15px;
    width: 100%;
    text-align: center;
  }

  .features {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 32px 16px;
  }

  .feature {
    display: flex;
    align-items: center;
    gap: 16px;
    text-align: left;
    padding: 16px 20px;
  }

  .feature-icon {
    font-size: 28px;
    margin-bottom: 0;
    flex-shrink: 0;
  }

  .feature-text {
    flex: 1;
  }

  .feature h3 {
    margin-bottom: 4px;
  }

  .demo-section {
    padding: 32px 16px 48px;
  }

  .demo-section h2 {
    font-size: 22px;
  }

  .demo-hint {
    font-size: 13px;
    margin-bottom: 24px;
  }

  .phone-frame {
    width: calc(100vw - 32px);
    max-width: 360px;
    height: calc(min(100vw - 32px, 360px) * 2.164);
    border-radius: 36px;
    border-width: 3px;
  }

  .phone-frame iframe {
    border-radius: 33px;
  }

  .phone-notch {
    width: 110px;
    height: 24px;
    border-radius: 0 0 18px 18px;
  }

  .footer {
    padding: 24px 16px;
  }
}
