/* =============================================
   GB WhatsApp 2026 – Google Play Style Landing
   ============================================= */

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

:root {
  --gb-green: #25d366;
  --gb-dark: #075e54;
  --gb-mid: #128c7e;
  --ps-bg: #202124;
  --ps-surface: #2d2e31;
  --ps-card: #3c4043;
  --ps-border: #3c4043;
  --ps-text: #e8eaed;
  --ps-subtext: #9aa0a6;
  --ps-blue: #8ab4f8;
  --ps-green: #81c995;
  --install-bg: #25d366;
  --install-hover: #1ebe5a;
  --radius: 12px;
  --radius-sm: 8px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Roboto', 'Google Sans', system-ui, sans-serif;
  background: var(--ps-bg);
  color: var(--ps-text);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ---- HEADER ---- */
.ps-header {
  background: var(--ps-bg);
  border-bottom: 1px solid var(--ps-border);
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 1px 8px rgba(0,0,0,.4);
}
.ps-header-inner {
  max-width: 960px; margin: 0 auto;
  padding: 12px 20px;
  display: flex; align-items: center; gap: 32px;
}
.ps-logo { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.ps-logo-text {
  font-family: 'Google Sans', sans-serif;
  font-size: 18px; font-weight: 500;
  color: var(--ps-text); letter-spacing: -0.3px;
}
.ps-nav { display: flex; gap: 4px; }
.ps-nav-link {
  text-decoration: none; color: var(--ps-subtext);
  font-size: 14px; padding: 6px 14px; border-radius: 20px;
  transition: background .2s, color .2s;
}
.ps-nav-link:hover { background: rgba(255,255,255,.08); color: var(--ps-text); }
.ps-nav-link.active { color: var(--gb-green); font-weight: 500; }

/* ---- MAIN ---- */
.ps-main { padding: 0 0 120px; }
.ps-container { max-width: 960px; margin: 0 auto; padding: 0 20px; }

/* ---- BREADCRUMB ---- */
.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--ps-subtext); padding: 18px 0 0;
}
.breadcrumb a { color: var(--ps-blue); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* ---- APP HERO ---- */
.app-hero {
  display: flex; align-items: flex-start; gap: 24px;
  padding: 24px 0 20px;
}
.app-icon-wrap {
  flex-shrink: 0;
  width: 96px; height: 96px; border-radius: 22px; overflow: hidden;
  background: var(--gb-dark); box-shadow: 0 4px 24px rgba(0,0,0,.5);
}
.app-icon { width: 96px; height: 96px; display: block; object-fit: cover; }
.app-meta { flex: 1; min-width: 0; }
.app-title {
  font-family: 'Google Sans', sans-serif;
  font-size: 26px; font-weight: 700; line-height: 1.25;
  color: var(--ps-text); margin-bottom: 6px;
}
.developer-name {
  display: inline-block; color: var(--gb-green);
  font-size: 14px; text-decoration: none; margin-bottom: 12px;
}
.developer-name:hover { text-decoration: underline; }
.app-badges {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
  font-size: 14px; color: var(--ps-subtext); margin-bottom: 10px;
}
.stars { color: #fdd663; font-size: 14px; }
.rating-num { font-weight: 500; color: var(--ps-text); }
.divider-dot { color: var(--ps-border); }
.badge-text { color: var(--ps-subtext); }
.content-tags { display: flex; gap: 8px; }
.tag {
  font-size: 12px; color: var(--ps-subtext);
  border: 1px solid var(--ps-border);
  padding: 2px 10px; border-radius: 4px;
}

/* ---- INSTALL BUTTON ---- */
.install-section { padding: 4px 0 24px; }
.install-section-mid { padding: 24px 0; border-top: 1px solid var(--ps-border); }
.install-bottom { padding: 32px 0 24px; border-top: 1px solid var(--ps-border); text-align: center; }

.btn-install {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--install-bg);
  color: #fff; font-weight: 700; font-size: 16px;
  padding: 14px 32px; border-radius: 30px;
  text-decoration: none; transition: background .2s, transform .15s, box-shadow .2s;
  box-shadow: 0 4px 20px rgba(37,211,102,.35);
  letter-spacing: .3px;
}
.btn-install:hover {
  background: var(--install-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(37,211,102,.45);
}
.btn-install:active { transform: translateY(0); }
.btn-install-large { font-size: 18px; padding: 16px 40px; }
.install-sub {
  font-size: 13px; color: var(--ps-subtext); margin-top: 10px;
}

/* ---- SCREENSHOTS ---- */
.screenshots-section { padding: 8px 0 24px; }
.screenshots-scroll {
  display: flex; gap: 16px; overflow-x: auto;
  padding-bottom: 12px; scrollbar-width: thin;
  scrollbar-color: var(--ps-card) transparent;
}
.screenshots-scroll::-webkit-scrollbar { height: 6px; }
.screenshots-scroll::-webkit-scrollbar-track { background: transparent; }
.screenshots-scroll::-webkit-scrollbar-thumb { background: var(--ps-card); border-radius: 3px; }
.screenshot-card { flex-shrink: 0; }
.screenshot-mock {
  width: 180px; height: 320px;
  border-radius: 18px; overflow: hidden;
  background: #fff; position: relative;
  box-shadow: 0 8px 32px rgba(0,0,0,.5);
  border: 2px solid var(--ps-card);
  display: flex; flex-direction: column;
}
.mock-statusbar { height: 20px; background: var(--gb-dark); flex-shrink: 0; }
.dark-sb { background: #111; }
.mock-header {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 10px; flex-shrink: 0;
}
.gb-green { background: var(--gb-dark); }
.mock-avatar { width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,.3); flex-shrink: 0; }
.mock-title-wrap { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.mock-line { height: 8px; border-radius: 4px; background: rgba(255,255,255,.4); }
.mock-line.wide { width: 80%; }
.mock-line.med { width: 55%; }
.mock-line.short { width: 35%; }
.white-line { background: rgba(255,255,255,.9); }
.grey-line { background: rgba(255,255,255,.4); }
.gb-line { background: var(--gb-green); opacity: .7; }
.mock-icons { display: flex; gap: 5px; }
.mock-icon-dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.5); }
.mock-body { flex: 1; padding: 8px; display: flex; flex-direction: column; gap: 10px; background: #f0f0f0; }
.chat-item { display: flex; gap: 8px; align-items: center; }
.chat-av { width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0; }
.gb-av { background: var(--gb-dark); }
.wa-av { background: var(--gb-mid); }
.chat-meta { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.mock-fab {
  position: absolute; bottom: 14px; right: 14px;
  width: 40px; height: 40px; border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0,0,0,.3);
}
.mock-caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: rgba(0,0,0,.6); color: #fff;
  font-size: 11px; text-align: center; padding: 6px;
  backdrop-filter: blur(4px);
}

/* screen2: dark */
.dark-header { background: #111; display: flex; align-items: center; gap: 8px; padding: 8px 10px; }
.dark-back { color: #fff; font-size: 18px; }
.dark-body { flex: 1; padding: 8px; display: flex; flex-direction: column; gap: 6px; background: #1a1a2e; }
.dark-caption { background: rgba(37,211,102,.8); color: #fff; }
.bubble {
  max-width: 85%; padding: 7px 10px; border-radius: 12px;
  font-size: 10px; line-height: 1.4; color: #fff;
}
.bubble-in { background: #2d2d2d; align-self: flex-start; border-radius: 4px 12px 12px 12px; }
.bubble-out { align-self: flex-end; border-radius: 12px 4px 12px 12px; }
.gb-bubble { background: var(--gb-dark); }

/* screen3: themes */
.gb-dark-header { background: #1a1a1a; padding: 10px; }
.theme-grid-label { color: #fff; font-size: 12px; font-weight: 600; }
.theme-grid {
  flex: 1; display: grid; grid-template-columns: 1fr 1fr;
  gap: 4px; padding: 6px; background: #1a1a1a;
}
.theme-tile {
  border-radius: 8px; display: flex; align-items: center;
  justify-content: center; min-height: 60px;
}
.theme-tile span { color: #fff; font-size: 10px; font-weight: 600; text-shadow: 0 1px 3px rgba(0,0,0,.5); }

/* screen4: features */
.features-list-mock { flex: 1; padding: 10px; background: #f9f9f9; display: flex; flex-direction: column; gap: 8px; }
.feat-row { display: flex; align-items: center; gap: 10px; }
.feat-icon {
  width: 22px; height: 22px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 12px; font-weight: 700; flex-shrink: 0;
}
.feat-row span { font-size: 11px; color: #333; font-weight: 500; }

/* ---- RATINGS ---- */
.rating-section {
  display: flex; gap: 32px; align-items: center;
  padding: 24px 0; border-top: 1px solid var(--ps-border);
  flex-wrap: wrap;
}
.rating-card { text-align: center; min-width: 120px; }
.rating-big { font-size: 52px; font-weight: 700; color: var(--ps-text); line-height: 1; }
.stars-big { color: #fdd663; font-size: 22px; margin: 4px 0; }
.rating-count { font-size: 13px; color: var(--ps-subtext); }
.rating-bars { flex: 1; min-width: 200px; display: flex; flex-direction: column; gap: 6px; }
.bar-row { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ps-subtext); }
.bar-row span:first-child { width: 10px; text-align: right; }
.bar-row span:last-child { width: 32px; }
.bar-track { flex: 1; height: 8px; background: var(--ps-card); border-radius: 4px; overflow: hidden; }
.bar-fill { height: 100%; background: var(--gb-green); border-radius: 4px; transition: width .6s ease; }

/* ---- ABOUT ---- */
.about-section { padding: 24px 0; border-top: 1px solid var(--ps-border); }
.about-section h2, .app-info-section h2, .reviews-section h2, .faq-section h2, .related-searches h2 {
  font-family: 'Google Sans', sans-serif;
  font-size: 20px; font-weight: 600; color: var(--ps-text); margin-bottom: 16px;
}
.about-text { font-size: 15px; color: var(--ps-subtext); line-height: 1.75; }
.about-text p { margin-bottom: 14px; }
.about-text strong { color: var(--ps-text); }
.about-text h3 { color: var(--ps-text); font-size: 16px; margin: 18px 0 8px; }
.about-text ul { padding-left: 20px; }
.about-text li { margin-bottom: 8px; }
.read-more-content { margin-top: 8px; }
.read-more-btn {
  background: none; border: none; color: var(--gb-green);
  font-size: 14px; cursor: pointer; padding: 0; margin-top: 4px;
  font-family: inherit;
}
.read-more-btn:hover { text-decoration: underline; }

/* ---- APP INFO TABLE ---- */
.app-info-section { padding: 24px 0; border-top: 1px solid var(--ps-border); }
.info-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.info-table th, .info-table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--ps-border); }
.info-table th { color: var(--ps-subtext); font-weight: 400; width: 40%; }
.info-table td { color: var(--ps-text); font-weight: 500; }

/* ---- REVIEWS ---- */
.reviews-section { padding: 24px 0; border-top: 1px solid var(--ps-border); }
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.review-card {
  background: var(--ps-surface); border-radius: var(--radius);
  padding: 18px; border: 1px solid var(--ps-border);
}
.review-top { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.reviewer-av {
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 18px; font-weight: 700; flex-shrink: 0;
}
.reviewer-name { font-size: 14px; font-weight: 500; color: var(--ps-text); }
.review-stars { color: #fdd663; font-size: 13px; margin-top: 2px; }
.review-text { font-size: 14px; color: var(--ps-subtext); line-height: 1.6; }

/* ---- FAQ ---- */
.faq-section { padding: 24px 0; border-top: 1px solid var(--ps-border); }
.faq-list { display: flex; flex-direction: column; gap: 2px; }
.faq-item {
  background: var(--ps-surface); border-radius: var(--radius-sm);
  border: 1px solid var(--ps-border); overflow: hidden;
  transition: background .2s;
}
.faq-item[open] { background: var(--ps-card); }
.faq-item summary {
  padding: 16px 20px; cursor: pointer;
  font-size: 15px; font-weight: 500; color: var(--ps-text);
  list-style: none; display: flex; justify-content: space-between; align-items: center;
  user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+'; font-size: 20px; color: var(--gb-green); transition: transform .2s;
}
.faq-item[open] summary::after { content: '−'; }
.faq-item p {
  padding: 0 20px 16px; font-size: 14px; color: var(--ps-subtext); line-height: 1.7;
}

/* ---- RELATED SEARCHES ---- */
.related-searches { padding: 24px 0; border-top: 1px solid var(--ps-border); }
.tags-wrap { display: flex; flex-wrap: wrap; gap: 10px; }
.search-tag {
  display: inline-block; padding: 8px 16px;
  background: var(--ps-surface); border: 1px solid var(--ps-border);
  border-radius: 20px; font-size: 13px; color: var(--ps-blue);
  text-decoration: none; transition: background .2s, border-color .2s;
}
.search-tag:hover { background: var(--ps-card); border-color: var(--gb-green); color: var(--gb-green); }

/* ---- STICKY INSTALL BAR ---- */
.sticky-install {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--ps-surface); border-top: 1px solid var(--ps-border);
  z-index: 200; padding: 12px 20px;
  transform: translateY(100%); transition: transform .3s ease;
  box-shadow: 0 -4px 20px rgba(0,0,0,.4);
}
.sticky-install.visible { transform: translateY(0); }
.sticky-inner { max-width: 960px; margin: 0 auto; display: flex; align-items: center; gap: 16px; }
.sticky-icon { border-radius: 10px; flex-shrink: 0; }
.sticky-text { flex: 1; }
.sticky-text strong { display: block; font-size: 14px; color: var(--ps-text); }
.sticky-text span { font-size: 12px; color: var(--ps-subtext); }
.btn-sticky-install {
  background: var(--install-bg); color: #fff;
  font-weight: 700; font-size: 15px;
  padding: 10px 24px; border-radius: 24px;
  text-decoration: none; flex-shrink: 0;
  transition: background .2s;
}
.btn-sticky-install:hover { background: var(--install-hover); }

/* ---- FOOTER ---- */
.ps-footer {
  background: var(--ps-surface);
  border-top: 1px solid var(--ps-border);
  padding: 24px 20px;
  margin-top: 40px;
}
.footer-inner { max-width: 960px; margin: 0 auto; text-align: center; }
.footer-inner p { font-size: 13px; color: var(--ps-subtext); margin-bottom: 8px; }
.footer-links a { color: var(--ps-blue); text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.footer-disc { font-size: 11px; color: #5f6368; margin-top: 8px; line-height: 1.5; }

/* ---- RESPONSIVE ---- */
@media (max-width: 600px) {
  .app-hero { flex-direction: column; gap: 16px; }
  .app-title { font-size: 20px; }
  .app-icon-wrap { width: 80px; height: 80px; }
  .app-icon { width: 80px; height: 80px; }
  .ps-nav { display: none; }
  .rating-section { flex-direction: column; gap: 20px; }
  .btn-install { font-size: 15px; padding: 13px 24px; }
  .btn-install-large { font-size: 16px; padding: 14px 28px; }
  .info-table th { width: 45%; }
}

@media (max-width: 400px) {
  .ps-container { padding: 0 14px; }
  .app-title { font-size: 18px; }
}
