/* MOBILE-FIRST RESPONSIVE IMPROVEMENTS FOR 10/10 */

/* Improve touch targets and spacing on mobile */
@media (max-width: 640px) {
  /* Increase button sizes for mobile */
  button,
  .btn-header-primary,
  .btn-header-secondary,
  a[role='button'] {
    min-height: 48px;
    min-width: 48px;
    padding: 14px 18px;
    font-size: 16px;
  }

  /* Improve card padding on mobile */
  .value-card,
  .use-case-card,
  .feature-text-card {
    padding: 20px;
  }

  /* Improve typography on mobile */
  h1 {
    font-size: 1.75rem;
    line-height: 1.2;
  }

  h2 {
    font-size: 1.5rem;
    line-height: 1.2;
  }

  h3 {
    font-size: 1.25rem;
    line-height: 1.3;
  }

  p {
    font-size: 1rem;
    line-height: 1.6;
  }

  /* Improve list spacing */
  ul,
  ol {
    padding-left: 20px;
  }

  li {
    margin-bottom: 8px;
  }

  /* Improve image sizing */
  img {
    max-width: 100%;
    height: auto;
    display: block;
  }

  /* Grid adjustments */
  .values-grid,
  .use-cases-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  /* Fix hero section on mobile */
  .hero-section h1 {
    font-size: 1.5rem;
  }

  .hero-section p {
    font-size: 0.95rem;
  }

  /* Improve navigation on mobile */
  .nav-header {
    flex-wrap: wrap;
    padding: 12px 16px;
  }

  .header-nav {
    display: none;
  }

  /* Improve footer on mobile */
  .grid-cols-1 {
    grid-template-columns: 1fr !important;
  }

  /* Better spacing between sections */
  section {
    padding: 24px 16px !important;
  }

  /* Improve CTA buttons */
  .flex.gap-4,
  .flex.gap-12 {
    flex-direction: column !important;
    gap: 16px !important;
  }

  .flex.gap-4 > button,
  .flex.gap-4 > a,
  .flex.gap-12 > button,
  .flex.gap-12 > a {
    width: 100%;
  }

  /* Improve feature lists */
  .feature-list {
    gap: 12px !important;
  }

  .feature-list li {
    font-size: 0.95rem;
  }
}

/* Tablet improvements (641px - 768px) */
@media (min-width: 641px) and (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  /* 2-column grid where appropriate */
  .values-grid {
    grid-template-columns: 1fr 1fr;
  }

  .use-cases-grid {
    grid-template-columns: 1fr 1fr;
  }

  /* Improve spacing */
  section {
    padding: 40px 24px;
  }
}

/* Landscape mode improvements */
@media (max-height: 600px) {
  .hero-section {
    padding: 30px 20px;
  }

  .hero-section h1 {
    font-size: 1.5rem;
  }

  .hero-section p {
    font-size: 0.9rem;
  }
}

/* Retina/High DPI screens */
@media (min-resolution: 192dpi) {
  img {
    image-rendering: -webkit-optimize-contrast;
  }
}

/* Large screens optimization */
@media (min-width: 1440px) {
  .container {
    max-width: 1320px;
  }

  h1 {
    font-size: 3.5rem;
  }

  h2 {
    font-size: 2.5rem;
  }

  /* Better grid layouts on large screens */
  .values-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .use-cases-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Print optimizations */
@media print {
  header,
  nav,
  footer,
  .skip-to-content {
    display: none !important;
  }

  body {
    color: black;
    background-color: white;
  }

  img {
    max-width: 100%;
  }

  a:not(.header-link):not(.btn-header-primary):not(.btn-header-secondary) {
    text-decoration: underline;
  }

  section {
    page-break-inside: avoid;
  }
}
