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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, sans-serif;
  color: #1d1d1f;
  background-color: #f5f5f7;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: #0071e3;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #0077ed;
}

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

/* ---- Layout ---- */

.container {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Header ---- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
}

.site-logo {
  font-size: 21px;
  font-weight: 700;
  color: #1d1d1f;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.site-logo:hover {
  color: #1d1d1f;
}

.site-nav {
  display: flex;
  gap: 28px;
}

.site-nav a {
  font-size: 14px;
  color: #1d1d1f;
  transition: color 0.2s ease;
}

.site-nav a:hover {
  color: #0071e3;
}

/* ---- Hero ---- */

.hero {
  text-align: center;
  padding: 80px 24px;
}

.hero h1 {
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: #1d1d1f;
}

/* ---- App Grid ---- */

.app-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  padding-bottom: 64px;
}

.app-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.app-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.app-card-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 16px;
}

.app-icon {
  width: 80px;
  height: 80px;
  border-radius: 30px;
  flex-shrink: 0;
}


.app-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 6px;
  color: #1d1d1f;
}

.app-card p {
  font-size: 15px;
  color: #6e6e73;
  line-height: 1.5;
  margin-bottom: 0;
}

/* ---- App Store Badge ---- */

.app-store-badge {
  display: inline-block;
  transition: opacity 0.2s ease;
  line-height: 0;
}

.app-store-badge:hover {
  opacity: 0.75;
}

.app-store-badge img {
  height: 40px;
  width: auto;
  display: block;
}

/* ---- Page Content (support, privacy, terms) ---- */

.page-content {
  padding: 48px 0 64px;
  min-height: calc(100vh - 52px - 73px);
}

.page-content h1 {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 8px;
}

.page-content .subtitle {
  font-size: 18px;
  color: #6e6e73;
  margin-bottom: 32px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 15px;
  color: #0071e3;
  margin-bottom: 24px;
}

.back-link:hover {
  color: #0077ed;
}

/* ---- CTA Button ---- */

.cta-button {
  display: inline-block;
  background: #0071e3;
  color: #ffffff;
  padding: 14px 28px;
  border-radius: 980px;
  font-size: 17px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s ease;
  margin-bottom: 48px;
}

.cta-button:hover {
  background: #0077ed;
  color: #ffffff;
}

/* ---- FAQ ---- */

.faq-section {
  margin-top: 16px;
}

.faq-section h2 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 8px;
}

.faq-item {
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.faq-item summary {
  padding: 20px 0;
  font-size: 17px;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  font-size: 24px;
  font-weight: 300;
  color: #6e6e73;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-answer {
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-answer p {
  padding-bottom: 20px;
  font-size: 15px;
  color: #6e6e73;
  line-height: 1.6;
}

/* ---- PDF Viewer ---- */

.pdf-viewer {
  width: 100%;
  height: 80vh;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  margin-bottom: 16px;
}

.pdf-fallback {
  font-size: 15px;
  color: #6e6e73;
}

/* ---- Footer ---- */

.site-footer {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  padding: 24px 0;
  text-align: center;
  font-size: 13px;
  color: #6e6e73;
}

.site-footer a {
  color: #6e6e73;
  transition: color 0.2s ease;
}

.site-footer a:hover {
  color: #0071e3;
}

.footer-links {
  margin-top: 8px;
  display: flex;
  justify-content: center;
  gap: 16px;
}

/* ---- Responsive ---- */

@media (max-width: 640px) {
  .app-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 48px 16px;
  }

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

  .site-nav {
    gap: 16px;
  }

  .site-nav a {
    font-size: 12px;
  }

  .page-content h1 {
    font-size: 32px;
  }

  .container {
    padding: 0 16px;
  }
}
