/* Logo */
.logo-box {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
}

.logo-box img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

.nav-wordmark {
  font-size: 20px;
  font-weight: 600;
  color: var(--color-ink);
  letter-spacing: -0.4px;
}

/* Store badges — 同寬 135px，高度依各自 SVG 比例自然縮放 */
.store-badge-img {
  display: block;
  width: 135px;
  height: auto;
  max-width: 100%;
}

.store-btn,
.cta-btn-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.2s;
  border-radius: var(--radius-btn);
}

.store-btn:hover,
.cta-btn-badge:hover {
  opacity: 0.88;
}

/* Hero 左側白底：Google Play badge 本身已是黑底，不需再包一層框 */
.store-btn--play-bordered {
  padding: 4px 8px;
  background: #fff;
  border: 1.5px solid var(--color-teal-pale);
}

/* Google Play coming soon */
.store-soon {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  cursor: default;
  user-select: none;
  overflow: hidden;
}

.store-soon .store-badge-img {
  opacity: 0.72;
}

.store-soon-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-gray);
}

.store-soon--on-dark .store-soon-label {
  color: var(--color-teal-light);
}

.store-soon--on-dark {
  align-items: center;
}

.store-soon--on-dark .store-badge-img {
  opacity: 0.8;
}

.store-btns .store-soon {
  align-items: center;
  width: 135px;
}

.cta-right .store-soon {
  align-items: center;
}

/* Feature cards */
.feat-card {
  background: #fff;
  border: 1px solid var(--color-teal-pale);
  border-radius: var(--radius-card);
  padding: 32px;
  transition: border-color 0.2s;
}

.feat-card:hover {
  border-color: var(--color-teal);
}

.feat-card--coral {
  border-color: var(--color-coral-soft);
}

.feat-card--coral:hover {
  border-color: var(--color-coral);
}

.feat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 22px;
}

.feat-icon--teal {
  background: var(--color-surface-mint);
  color: var(--color-teal);
}

.feat-icon--coral {
  background: var(--color-coral-bg);
  color: var(--color-coral);
}

.feat-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-ink);
  margin-bottom: 8px;
}

.feat-desc {
  font-size: 15px;
  color: var(--color-gray);
  line-height: 1.6;
}

/* Screenshot cards */
.screen-card {
  background: #fff;
  border-radius: var(--radius-card);
  border: 1px solid var(--color-teal-pale);
  padding: 18px;
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease;
}

.screen-phone {
  width: 100%;
  aspect-ratio: 375 / 812;
  height: auto;
  border-radius: 12px;
  border: 2px solid var(--color-teal-pale);
  overflow: hidden;
  margin-bottom: 16px;
  background: var(--color-surface-mint);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.screen-phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

/* Friends 匯出為置中彈窗+灰底，放大填滿相框 */
.screen-phone img.screen-shot--tall {
  transform: scale(1.18);
  transform-origin: top center;
}

.screen-caption {
  margin-top: auto;
  flex-shrink: 0;
  min-height: 62px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.screen-lbl {
  font-size: 15px;
  font-weight: 400;
  color: var(--color-ink);
  line-height: 1.35;
  min-height: calc(15px * 1.35 * 2);
}

.screen-lbl-accent {
  font-weight: 700;
}

.screen-lbl-accent--green {
  color: var(--color-ink);
}

.screen-lbl-accent--coral {
  color: var(--color-coral);
}

.screen-sub {
  font-size: 13px;
  color: var(--color-ink-soft);
  margin-top: 4px;
}

/* Hero phone previews */
.phone-preview {
  background: #fff;
  border-radius: 28px;
  border: 1px solid var(--color-teal-pale);
  overflow: hidden;
  box-shadow: var(--shadow-phone);
}

.phone-preview--side {
  width: 152px;
  flex-shrink: 0;
  margin-bottom: 24px;
  margin-right: 0;
}

.phone-preview--main {
  width: 198px;
  flex-shrink: 0;
}

.phone-preview img {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: top;
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal[hidden] {
  display: none;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 52, 44, 0.55);
}

.modal-dialog {
  position: relative;
  background: #fff;
  border-radius: 20px;
  padding: 32px 28px 28px;
  width: 100%;
  max-width: 360px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.2);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  font-size: 24px;
  line-height: 1;
  color: var(--color-gray-light);
  cursor: pointer;
  border-radius: 8px;
}

.modal-close:hover {
  color: var(--color-ink);
  background: var(--color-surface-mint);
}

.modal-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-ink);
  margin-bottom: 8px;
  text-align: center;
}

.modal-sub {
  font-size: 14px;
  color: var(--color-gray);
  text-align: center;
  margin-bottom: 24px;
  line-height: 1.5;
}

.modal-store-btns {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.modal-store-btns .store-btn {
  width: auto;
  max-width: 100%;
}

.modal-store-btns .store-badge-img {
  width: 135px;
  height: auto;
  max-width: 100%;
}

.modal-android-note {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-gray-light);
  text-align: center;
  margin: 0;
}

/* Mobile nav menu */
.nav-menu-btn {
  display: none;
  border: none;
  background: transparent;
  color: var(--color-ink-muted);
  font-size: 24px;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}

.nav-drawer {
  display: none;
}

.nav-drawer.is-open {
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--color-surface-mint);
  padding: 12px 20px 16px;
  border-bottom: 1px solid var(--color-teal-pale);
  box-shadow: 0 8px 24px rgba(4, 52, 44, 0.08);
}

.nav-drawer a {
  font-size: 15px;
  color: var(--color-ink-muted);
  text-decoration: none;
  font-weight: 500;
  padding: 10px 0;
}

.nav-drawer a:hover {
  color: var(--color-ink);
}

.nav-drawer-cta {
  width: 100%;
  background: var(--color-coral);
  color: #fff;
  border: none;
  border-radius: 22px;
  padding: 12px 18px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 8px;
  text-align: center;
}

.nav-drawer-cta:hover {
  background: var(--color-coral-hover);
}
