/*
  Product hub pages (one page per app: icon, status, intro, support links).
  Load AFTER site.css. Values mirror the RandomPick hub so every product page
  looks the same; start a new product page by copying website/launchman/.
  (RandomPick's hub still carries its own inline copy of these rules.)
*/

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

.hub-hero { padding: 56px 0 40px; text-align: center; }
.hub-icon {
  width: 96px;
  height: 96px;
  margin: 0 auto 20px;
  border-radius: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(0,0,0,0.4);
}
.hub-icon img { width: 100%; height: 100%; object-fit: cover; border-radius: 26px; }
.hub-title {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(28px, 5vw, 40px);
  font-weight: 800;
  margin: 0 0 6px;
}
.hub-subtitle {
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin: 0 0 18px;
}
.hub-desc {
  color: var(--text-secondary);
  font-size: 16px;
  max-width: 480px;
  margin: 0 auto 20px;
  word-break: keep-all;
}
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
  color: var(--sky);
  background: rgba(0,209,255,0.12);
  border-radius: 999px;
  padding: 6px 14px;
}
.status-pill {
  margin-bottom: 32px;
}
.status-pill .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sky);
}

/* Tab row under the status pill: 앱 소개 / 업데이트 소식 / 개인정보처리방침 */
.hub-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.hub-tab {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: border-color 0.2s, color 0.2s;
}
.hub-tab:hover { border-color: rgba(123,97,255,0.5); color: var(--text); }

.hub-section { padding: 60px 0; }
.section-head { text-align: center; margin-bottom: 36px; }
.section-head:last-child { margin-bottom: 0; }
.section-title {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(22px, 3.4vw, 30px);
  font-weight: 800;
  margin: 0 0 10px;
}
.section-sub {
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
  font-size: 15px;
  word-break: keep-all;
}

/* Feature summary cards (앱 소개) */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.feature-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px 20px;
}
.feature-card .feature-icon { width: 36px; height: 36px; margin-bottom: 14px; }
.feature-card h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  margin: 0 0 8px;
}
.feature-card p {
  color: var(--text-secondary);
  font-size: 13.5px;
  line-height: 1.7;
  margin: 0;
  word-break: keep-all;
}

/* Key visual (wide banner) */
.showcase-media { max-width: 1080px; margin: 0 auto; }
.showcase-media img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 22px;
  border: 1px solid var(--border);
  box-shadow: 0 20px 48px rgba(0,0,0,0.35);
}

/* Real-screen walkthrough, zig-zag on desktop. Screens here are 16:9 landscape
   (RandomPick's hub uses portrait phone screens with its own inline copy). */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.feature-row + .feature-row { margin-top: 56px; }
.feature-media { order: 1; }
.feature-text { order: 2; }
.feature-row.reverse .feature-media { order: 2; }
.feature-row.reverse .feature-text { order: 1; }
.feature-media img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 18px;
  border: 1px solid var(--border);
  box-shadow: 0 16px 40px rgba(0,0,0,0.35);
}
.feature-text h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 22px;
  margin: 0 0 12px;
}
.feature-text p {
  color: var(--text-secondary);
  font-size: 15.5px;
  line-height: 1.8;
  margin: 0;
  word-break: keep-all;
}

/* Reserved slot for artwork that doesn't exist yet (key visual, real screenshots).
   Replace the whole <div class="media-slot"> with the <img> when the file is ready,
   same as RandomPick's .showcase-media / .feature-row blocks. */
.media-slot {
  max-width: 1080px;
  margin: 0 auto;
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  border: 1px dashed var(--border);
  border-radius: 22px;
  color: var(--text-muted);
  font-size: 15px;
}

/* Support links (notices / privacy). A card without an href is "not ready yet":
   swap its <div> for <a href="..."> and drop .is-disabled when the page exists. */
.cta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.cta-card {
  display: block;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px;
  text-decoration: none;
  transition: border-color 0.2s, transform 0.2s;
}
a.cta-card:hover { border-color: rgba(123,97,255,0.4); transform: translateY(-3px); }
.cta-card h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 18px;
  color: var(--text);
  margin: 0 0 8px;
}
.cta-card p { color: var(--text-secondary); font-size: 14px; margin: 0 0 10px; word-break: keep-all; }
.cta-card .cta-arrow { color: var(--sky); font-size: 14px; font-weight: 600; }
.cta-card.is-disabled { background: transparent; border-style: dashed; }
.cta-card.is-disabled h3 { color: var(--text-secondary); }
.cta-card.is-disabled .cta-arrow { color: var(--text-muted); }

@media (max-width: 860px) {
  .feature-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .feature-row {
    grid-template-columns: 1fr;
    gap: 20px;
    text-align: center;
  }
  .feature-row .feature-media,
  .feature-row .feature-text,
  .feature-row.reverse .feature-media,
  .feature-row.reverse .feature-text { order: initial; }
  .feature-row + .feature-row { margin-top: 44px; }
}
@media (max-width: 560px) {
  .hub-hero { padding: 40px 0 32px; }
  .feature-grid { grid-template-columns: 1fr; }
  .cta-grid { grid-template-columns: 1fr; }
  .media-slot { min-height: 160px; }
}
