/**
 * Gramo App Store 下載 CTA — 全站一致
 * https://apps.apple.com/app/id6770117859
 */
.gramo-app-store-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: -0.02em;
  color: #090a10;
  background: linear-gradient(118deg, var(--gramo-accent) 0%, var(--gramo-accent2) 100%);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 4px 20px rgba(var(--gramo-accent-rgb), 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gramo-app-store-nav:hover {
  color: #090a10;
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(var(--gramo-accent-rgb), 0.38);
}

.gramo-app-store-btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 14px 22px 14px 18px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(145deg, rgba(28, 35, 56, 0.92), rgba(9, 10, 16, 0.95));
  color: var(--gramo-text);
  text-decoration: none;
  box-shadow:
    0 0 0 1px rgba(var(--gramo-accent-rgb), 0.12),
    0 16px 40px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.gramo-app-store-btn:hover {
  color: var(--gramo-text);
  transform: translateY(-2px);
  border-color: rgba(var(--gramo-accent-rgb), 0.45);
  box-shadow:
    0 0 0 1px rgba(var(--gramo-accent-rgb), 0.28),
    0 20px 48px rgba(0, 0, 0, 0.42);
}

.gramo-app-store-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.gramo-app-store-btn-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  text-align: left;
  line-height: 1.15;
}

.gramo-app-store-btn-kicker {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--muted);
  text-transform: uppercase;
}

.gramo-app-store-btn-title {
  font-size: 18px;
  font-weight: 680;
  letter-spacing: -0.03em;
}

.gramo-app-store-btn--hero .gramo-app-store-icon {
  width: 32px;
  height: 32px;
}

.gramo-app-store-btn--hero .gramo-app-store-btn-title {
  font-size: 20px;
}

.hero-download {
  margin: 34px auto 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.gramo-qr-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 20px 22px 16px;
  border-radius: 18px;
  border: 1px solid rgba(var(--gramo-accent-rgb), 0.28);
  background: linear-gradient(160deg, rgba(28, 35, 56, 0.88), rgba(9, 10, 16, 0.94));
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06),
    0 16px 40px rgba(0, 0, 0, 0.32);
}

.gramo-qr-card img {
  display: block;
  width: 232px;
  height: 232px;
  max-width: 100%;
  border-radius: 12px;
  background: #fff;
  padding: 8px;
  box-sizing: border-box;
}

.gramo-qr-card-label {
  margin: 0;
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -0.02em;
  color: var(--gramo-text);
  text-align: center;
}

.gramo-qr-card-hint {
  margin: 0;
  font-size: 11px;
  color: var(--faint);
  text-align: center;
  letter-spacing: 0.01em;
}

/* 橫瘦 App Store 掣（圖三樣式：無黑框、白底 pill） */
.gramo-app-store-slim {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 4px;
  padding: 6px 14px;
  border: none;
  border-radius: 999px;
  background: #ffffff;
  color: #090a10;
  text-decoration: none;
  box-shadow: none;
  white-space: nowrap;
  transition: transform 0.2s ease, background 0.2s ease;
}

.gramo-app-store-slim:hover {
  color: #090a10;
  background: #f2f3f8;
  transform: translateY(-1px);
}

.gramo-app-store-slim-icon {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.gramo-app-store-slim-text {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
}

.gramo-app-store-slim--footer {
  margin-top: 0;
  padding: 5px 11px;
  gap: 6px;
}

.gramo-app-store-slim--footer .gramo-app-store-slim-icon {
  width: 13px;
  height: 13px;
}

.gramo-app-store-slim--footer .gramo-app-store-slim-text {
  font-size: 12px;
}

.hero-download-note {
  margin: 0;
  font-size: 14px;
  color: var(--faint);
  letter-spacing: -0.01em;
}

.footer-app-store {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--gramo-accent) !important;
}

.footer-app-store:hover {
  color: var(--gramo-gold-light) !important;
}

.footer-qr-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin-top: 16px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(var(--gramo-accent-rgb), 0.22);
  background: rgba(28, 35, 56, 0.5);
}

.footer-qr-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.footer-qr-img {
  display: block;
  width: 84px;
  height: 84px;
  border-radius: 8px;
  background: #fff;
  padding: 4px;
  box-sizing: border-box;
}

@media (max-width: 920px) {
  .gramo-site-header .nav-end {
    gap: 8px;
  }

  .gramo-app-store-nav {
    padding: 7px 12px;
    font-size: 12px;
  }

  .gramo-qr-card img {
    width: 208px;
    height: 208px;
  }
}
