/* Reset-ish */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "San Francisco", "Helvetica Neue", Arial, sans-serif;
  color: #111827;
  background: #f3f4f6;
}

/* Layout helpers */
.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #f9fafb;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(16px);
}

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

/* Branding */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.brand-logo {
  width: 52px;
  height: 52px;
  border-radius: 20px;
}

.brand-name {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #111827;
}

/* Nav */
.site-nav {
  display: inline-flex;
  gap: 20px;
}

.nav-link {
  position: relative;
  font-size: 15px;
  color: #6b7280;
  text-decoration: none;
  padding-bottom: 4px;
}

.nav-link:hover {
  color: #111827;
}

.nav-link-active {
  color: #111827;
  font-weight: 600;
}

.nav-link-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  margin: 0 auto;
  width: 32px;
  height: 2px;
  border-radius: 999px;
  background: #2563eb;
}

/* Hero */
.hero {
  padding: 40px 0 16px;
}

.hero-compact {
  padding-bottom: 8px;
}

.hero-title {
  font-size: clamp(32px, 4vw, 40px);
  letter-spacing: -0.04em;
  margin: 0 0 10px;
}

.hero-subtitle {
  margin: 0 0 8px;
  max-width: 640px;
  font-size: 16px;
  line-height: 1.6;
  color: #4b5563;
}

.hero-bullets {
  margin: 0 0 18px;
  font-size: 14px;
  color: #6b7280;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

/* Buttons & links */
.button-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 999px;
  background: #2563eb;
  color: #f9fafb;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 18px 40px rgba(37, 99, 235, 0.25);
}

.button-primary:hover {
  background: #1d4ed8;
}

.button-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #ffffff;
  color: #1f2933;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

.button-outline:hover {
  border-color: rgba(37, 99, 235, 0.45);
}

.text-link {
  font-size: 14px;
  font-weight: 500;
  color: #2563eb;
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
}

/* App Store badge */
.app-store-link {
  display: inline-flex;
  align-items: center;
}

.app-store-badge {
  height: 42px;
  max-width: 170px;
  display: block;
}

/* Sections */
.section {
  padding: 8px 0 40px;
}

.section-header {
  margin-bottom: 16px;
}

.section-title {
  margin: 0 0 4px;
  font-size: 20px;
  letter-spacing: -0.02em;
}

.section-caption {
  margin: 0;
  font-size: 14px;
  color: #6b7280;
}

.section-block + .section-block {
  margin-top: 36px;
}

.section-footer {
  margin-top: 18px;
}

/* Apps grid & cards */
.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.app-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 16px 16px 14px;
  box-shadow:
    0 18px 45px rgba(15, 23, 42, 0.06),
    0 0 0 1px rgba(15, 23, 42, 0.03);
}

.app-card-header {
  display: flex;
  gap: 12px;
  align-items: center;
}

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

.app-name {
  margin: 0 0 2px;
  font-size: 15px;
  font-weight: 600;
}

.app-summary {
  margin: 0;
  font-size: 13px;
  color: #4b5563;
}

.app-meta {
  margin: 10px 0 8px;
  font-size: 12px;
  color: #9ca3af;
}

.app-footer {
  display: flex;
  justify-content: flex-start;
}

/* Pills */
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
}

.pill-muted {
  background: #fef3c7;
  color: #92400e;
}

/* Contact card */
.contact-card {
  margin-top: 10px;
  padding: 14px 16px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow:
    0 16px 40px rgba(15, 23, 42, 0.05),
    0 0 0 1px rgba(15, 23, 42, 0.03);
  font-size: 14px;
  color: #374151;
}

.contact-card a {
  color: #2563eb;
  text-decoration: none;
}

.contact-card a:hover {
  text-decoration: underline;
}

/* Footer */
.site-footer {
  margin-top: auto;
  padding: 14px 0 18px;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
  background: #f9fafb;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.footer-copy {
  margin: 0;
  font-size: 12px;
  color: #9ca3af;
}

.footer-link {
  font-size: 12px;
  color: #6b7280;
  text-decoration: none;
}

.footer-link:hover {
  text-decoration: underline;
}

/* Responsive tweaks */
@media (max-width: 640px) {
  .site-header-inner {
    height: 68px;
  }

  .hero {
    padding-top: 28px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
