/* ==========================================================================
   Tejas Telkar  :  Open Source Mac Apps & AI Systems
   Mac App Store Editorial Aesthetic · Pure White Canvas
   ========================================================================== */

:root {
  --ink: #111111;
  --ink-secondary: #3a3a3c;
  --muted: #6e6e73;
  --muted-light: #86868b;
  --line: rgba(0, 0, 0, 0.08);
  --line-subtle: rgba(0, 0, 0, 0.04);
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-alt: #f5f5f7;
  --surface-hover: #f9f9fb;
  --accent: #0071e3;
  --accent-hover: #0077ed;
  --accent-mint: #34c759;
  --accent-purple: #9b51e0;
  --accent-orange: #ff9500;
  --accent-gold: #f5a623;
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 8px;
  --radius-pill: 999px;
  --shadow-subtle: 0 2px 8px rgba(0, 0, 0, 0.03);
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.02);
  --shadow-hover: 0 16px 40px rgba(0, 0, 0, 0.08), 0 2px 6px rgba(0, 0, 0, 0.04);
  --font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", Inter, system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

html.lenis, html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-family);
  font-feature-settings: "cv11", "ss01";
  font-weight: 500;
  font-size: 15px;
  line-height: 1.5;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Stage container */
.stage {
  max-width: 920px;
  margin: 0 auto;
  padding: 100px 24px 80px;
}

/* -------------------------------------------------------------
   Presence Counter Pill (Aligned inside Topbar)
   ------------------------------------------------------------- */
.presence-counter {
  position: relative;
  top: auto;
  right: auto;
  z-index: 1;
  margin: 0;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--line);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  cursor: default;
  user-select: none;
  transition: all 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  overflow: hidden;
}

.presence-counter:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  border-color: rgba(0, 0, 0, 0.14);
}

.counter-content {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 5px 14px;
  font-size: 13px;
  color: var(--ink);
}

.counter-live {
  font-weight: 500;
}

.counter-live strong {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}

.presence-label {
  color: var(--muted);
  font-size: 12.5px;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34c759;
  box-shadow: 0 0 0 2.5px rgba(52, 199, 89, 0.24);
  animation: livePulse 2.4s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes livePulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.6;
    transform: scale(0.9);
  }
}

.counter-info {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  filter: blur(4px);
  transform: translateY(10px);
  pointer-events: none;
}

/* -------------------------------------------------------------
   Top Navigation Bar
   ------------------------------------------------------------- */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 64px;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--line);
}

.topbar-actions {
  display: flex;
  align-items: center;
  margin-left: auto;
  flex-shrink: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}

.avatar-logo {
  border-radius: 50%;
  border: 1px solid var(--line);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.atlas-logo-mark {
  width: 22px;
  height: 22px;
  border-radius: 0;
  border: none;
  box-shadow: none;
  flex-shrink: 0;
}

.brand-name {
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.015em;
}

.badge.role {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 6px;
  background: #f0f0f4;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 12px;
  border-radius: var(--radius-pill);
  background: #f5f5f7;
  color: var(--ink-secondary);
  text-decoration: none;
  font-size: 12.5px;
  letter-spacing: -0.01em;
  border: 1px solid var(--line);
  transition: all 0.2s ease;
}

.pill:hover {
  background: #e8e8ed;
  color: var(--ink);
  transform: translateY(-0.5px);
}

/* -------------------------------------------------------------
   Hero Intro (Center-Aligned & Compact)
   ------------------------------------------------------------- */
.hero-section {
  text-align: center;
  max-width: 680px;
  margin: 10px auto 36px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
  text-align: center;
  flex-wrap: wrap;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34c759;
  box-shadow: 0 0 0 2.5px rgba(52, 199, 89, 0.24);
  display: inline-block;
  flex-shrink: 0;
  animation: livePulse 2.4s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.kicker-sparkle {
  color: var(--accent);
  font-size: 14px;
}

.hero-title {
  font-size: 38px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.038em;
  color: var(--ink);
  text-align: center;
  margin: 0 auto 14px;
}

.hero-bio {
  font-size: 15.5px;
  line-height: 1.58;
  color: var(--ink-secondary);
  text-align: center;
  max-width: 580px;
  margin: 0 auto 20px;
}

.hero-bio strong {
  color: var(--ink);
  font-weight: 700;
}

.hero-action-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

/* Button primitives */
.button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 16px;
  border-radius: var(--radius-pill);
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.22, 1, 0.36, 1);
  border: 1px solid transparent;
}

.button.primary {
  background: var(--ink);
  color: #ffffff;
}

.button.primary:hover {
  background: #2a2a2e;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.button .amount {
  font-size: 11.5px;
  font-weight: 500;
  opacity: 0.72;
}

.button.secondary {
  background: var(--surface-alt);
  color: var(--ink);
  border-color: var(--line);
}

.button.secondary:hover {
  background: #eaeaea;
  transform: translateY(-1px);
}

.kofi-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 15px;
  border-radius: var(--radius-pill);
  background: rgba(255, 149, 0, 0.08);
  border: 1px solid rgba(255, 149, 0, 0.22);
  color: #c97100;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.kofi-pill-btn:hover {
  background: rgba(255, 149, 0, 0.14);
  border-color: rgba(255, 149, 0, 0.35);
  transform: translateY(-1px);
}

/* Hero Right Column: Portrait Card */
.hero-right-col {
  display: flex;
  justify-content: center;
}

.portrait-card {
  width: 100%;
  max-width: 340px;
  background: var(--surface);
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
  padding: 12px;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.portrait-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(0, 0, 0, 0.12);
}

.portrait-image-wrapper {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 20px;
  overflow: hidden;
  background: #f0f0f4;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.05);
}

.portrait-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.portrait-card:hover .portrait-image {
  transform: scale(1.025);
}

.portrait-caption {
  padding: 14px 8px 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.caption-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.caption-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

.caption-sub {
  font-size: 12px;
  color: var(--muted);
}

/* -------------------------------------------------------------
   Mac App Store Showcase Section
   ------------------------------------------------------------- */
.appstore-section {
  margin-bottom: 72px;
}

.appstore-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.appstore-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.appstore-icon {
  font-size: 15px;
}

.appstore-heading {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin: 0 0 6px;
}

.appstore-sub {
  font-size: 15px;
  color: var(--muted);
  margin: 0;
}



/* App Store Cards Grid */
.appstore-grid {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.appstore-card {
  background: var(--surface);
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
  padding: 28px;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.appstore-card:hover {
  box-shadow: var(--shadow-hover);
  border-color: rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

/* App Store Header Row */
.appstore-card-header {
  display: flex;
  align-items: center;
  gap: 20px;
}

.appstore-app-icon {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.10);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.appstore-app-meta {
  flex: 1;
  min-width: 0;
}

.app-title-line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.appstore-app-title {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: 0;
}

.appstore-verified {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: var(--accent);
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
}

.appstore-app-subtitle {
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 8px;
  font-weight: 500;
}

.appstore-ratings-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
  flex-wrap: wrap;
}

.stars {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
  color: var(--accent-gold);
  font-size: 13px;
  letter-spacing: 0.5px;
}

.rating-score {
  font-weight: 700;
  color: var(--ink);
}

.rating-divider {
  opacity: 0.5;
}

.category-tag, .age-tag {
  font-weight: 500;
}

.age-tag {
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 4px;
  padding: 0 5px;
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
}

/* App Store GET Button */
.appstore-get-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.appstore-get-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 88px;
  height: 34px;
  padding: 0 20px;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 2px 8px rgba(0, 113, 227, 0.25);
}

.appstore-get-btn:hover {
  background: var(--accent-hover);
  transform: scale(1.03);
  box-shadow: 0 4px 14px rgba(0, 113, 227, 0.35);
}

.appstore-get-sub {
  font-size: 11px;
  color: var(--muted-light);
  font-weight: 500;
  text-align: center;
}

.appstore-divider {
  height: 1px;
  background: var(--line);
  margin: 22px 0;
}

/* Editorial Feature Banner */
.appstore-banner {
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  margin-bottom: 22px;
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.foldy-banner {
  background: linear-gradient(135deg, #0e121a 0%, #151d2c 50%, #0d1624 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.duosound-banner {
  background: linear-gradient(135deg, #131020 0%, #1b1632 50%, #110e26 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.banner-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 8px;
}

.appstore-banner h4 {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
  color: #ffffff;
}

.appstore-banner p {
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.78);
  margin: 0 0 16px;
  max-width: 600px;
}

.banner-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-chip {
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.92);
}

/* App Description */
.appstore-description {
  font-size: 15px;
  line-height: 1.62;
  color: var(--ink-secondary);
  margin: 0 0 20px;
}

/* What's New Section */
.appstore-whats-new {
  background: var(--surface-alt);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-bottom: 22px;
  border: 1px solid var(--line-subtle);
}

.whats-new-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.whats-new-header strong {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
}

.whats-new-version {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--accent);
  background: rgba(0, 113, 227, 0.08);
  padding: 2px 8px;
  border-radius: 4px;
}

.whats-new-list {
  margin: 0;
  padding-left: 20px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
}

.whats-new-list li {
  margin-bottom: 4px;
}

.whats-new-list code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  background: rgba(0, 0, 0, 0.05);
  padding: 2px 5px;
  border-radius: 4px;
  color: var(--ink);
}

/* App Store Information Table */
.appstore-info-table {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 22px;
}

.info-row {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.info-label {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted-light);
}

.info-val {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.35;
}

/* Bottom Action Buttons */
.appstore-card-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.action-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 16px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.download-action {
  background: #f0f0f5;
  color: var(--ink);
  border: 1px solid var(--line);
}

.download-action:hover {
  background: var(--ink);
  color: #ffffff;
  border-color: var(--ink);
  transform: translateY(-1px);
}

.secondary-action {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

.secondary-action:hover {
  background: var(--surface-alt);
  border-color: rgba(0, 0, 0, 0.15);
  transform: translateY(-1px);
}



/* -------------------------------------------------------------
   Footer
   ------------------------------------------------------------- */
.appstore-footer {
  padding-top: 36px;
  border-top: 1px solid var(--line);
}

.footer-content {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}

.footer-left p {
  margin: 0 0 4px;
  font-size: 13px;
  color: var(--muted);
}

.footer-left .footer-sub {
  font-size: 11.5px;
  color: var(--muted-light);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--ink-secondary);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: color 0.18s ease;
}

.footer-links a:hover {
  color: var(--accent);
}

/* -------------------------------------------------------------
   Compact App Store Shelf Card Styles
   ------------------------------------------------------------- */
.compact-shelf-card {
  padding: 24px;
}

.app-icon-link {
  display: block;
  flex-shrink: 0;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.app-icon-link:hover {
  transform: scale(1.04);
}

.app-title-link {
  text-decoration: none;
  color: inherit;
}

.app-title-link:hover .appstore-app-title {
  color: var(--accent);
}

.app-badge-pill {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 4px;
  background: var(--surface-alt);
  color: var(--muted);
  border: 1px solid var(--line);
  white-space: nowrap;
}

.appstore-short-desc {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-secondary);
  margin: 16px 0 14px;
}

.app-tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 20px;
}

.app-tags-row .tag-chip {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 6px;
  background: var(--surface-alt);
  border: 1px solid var(--line);
  color: var(--muted);
  white-space: nowrap;
}

.primary-page-btn {
  background: var(--ink);
  color: #ffffff;
  font-weight: 600;
}

.primary-page-btn:hover {
  background: #2a2a2e;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

/* -------------------------------------------------------------
   Responsive Breakpoints
   ------------------------------------------------------------- */
@media (max-width: 860px) {
  .hero-section {
    margin: 4px auto 30px;
    padding-bottom: 30px;
  }

  .hero-title {
    font-size: 32px;
  }

  .appstore-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .editorial-card {
    padding: 28px 22px;
  }

  .editorial-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }
}

@media (max-width: 768px) {
  .topbar {
    padding: 0 16px;
    height: 56px;
  }

  .topbar-actions {
    display: none;
  }

  .topbar .brand .pill:not(.back-pill) {
    display: none;
  }

  .brand {
    gap: 10px;
  }

  .stage {
    padding: 76px 16px 60px;
  }

  .hero-title {
    font-size: clamp(26px, 6vw, 32px);
  }

  .hero-bio {
    font-size: 14.5px;
  }

  .footer-content {
    flex-direction: column;
    gap: 20px;
  }
}

@media (max-width: 600px) {
  .topbar {
    padding: 0 14px;
    height: 54px;
  }

  .topbar .brand .pill:last-of-type {
    display: none;
  }

  .brand-name {
    font-size: 14.5px;
  }

  .stage {
    padding: 72px 14px 48px;
  }

  .hero-section {
    margin: 0 auto 24px;
    padding-bottom: 24px;
  }

  .hero-kicker {
    font-size: 11px;
    line-height: 1.4;
    gap: 6px;
  }

  .hero-title {
    font-size: 26px;
    line-height: 1.18;
    margin-bottom: 12px;
  }

  .hero-bio {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 18px;
  }

  .hero-action-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    width: 100%;
    max-width: 380px;
  }

  .hero-action-row .button.primary {
    grid-column: 1 / -1;
    height: 42px;
    justify-content: center;
    font-size: 13.5px;
  }

  .hero-action-row .button.secondary,
  .hero-action-row .kofi-pill-btn {
    height: 38px;
    justify-content: center;
    font-size: 12.5px;
    padding: 0 10px;
  }

  .appstore-header {
    margin-bottom: 20px;
  }

  .appstore-heading {
    font-size: 24px;
  }

  .appstore-sub {
    font-size: 13.5px;
    line-height: 1.5;
  }

  .appstore-grid {
    gap: 20px;
  }

  .appstore-card,
  .compact-shelf-card {
    padding: 18px 14px !important;
    border-radius: 18px;
  }

  .appstore-card-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    flex-wrap: nowrap;
  }

  .appstore-app-icon {
    width: 58px;
    height: 58px;
    border-radius: 14px;
  }

  .appstore-app-meta {
    flex: 1;
    min-width: 0;
  }

  .app-title-line {
    gap: 6px;
    flex-wrap: wrap;
  }

  .appstore-app-title {
    font-size: 19px;
  }

  .app-badge-pill {
    font-size: 10px;
    padding: 2px 5px;
  }

  .appstore-app-subtitle {
    font-size: 12.5px;
    line-height: 1.35;
    margin: 2px 0 6px;
  }

  .appstore-ratings-row {
    font-size: 11.5px;
    gap: 4px;
  }

  .stars {
    font-size: 11px;
    gap: 1.5px;
  }

  .stars svg {
    width: 10px;
    height: 10px;
  }

  .appstore-get-wrapper {
    width: auto;
    margin-top: 0;
    align-self: flex-start;
    gap: 3px;
  }

  .appstore-get-btn {
    min-width: 66px;
    height: 30px;
    padding: 0 12px;
    font-size: 12px;
  }

  .appstore-get-sub {
    font-size: 10px;
    white-space: nowrap;
  }

  .appstore-short-desc {
    font-size: 13.5px;
    line-height: 1.55;
    margin: 12px 0 10px;
  }

  .app-tags-row {
    gap: 5px;
    margin-bottom: 14px;
  }

  .app-tags-row .tag-chip {
    font-size: 10.5px;
    padding: 2.5px 7px;
  }

  .appstore-card-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    width: 100%;
  }

  .action-btn {
    padding: 0 10px;
    justify-content: center;
  }

  .action-btn.primary-page-btn {
    grid-column: 1 / -1;
    height: 42px;
    font-size: 13.5px;
  }

  .action-btn.download-action,
  .action-btn.secondary-action {
    height: 38px;
    font-size: 12px;
  }

  .action-btn.download-action span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .footer-content {
    flex-direction: column;
    gap: 18px;
  }

  .footer-links {
    gap: 12px;
  }
}

@media (max-width: 380px) {
  .topbar {
    padding: 0 10px;
  }

  .brand {
    gap: 6px;
  }

  .brand-name {
    font-size: 13.5px;
  }

  .pill {
    padding: 0 8px;
    font-size: 11.5px;
    gap: 3px;
  }

  .stage {
    padding: 68px 10px 40px;
  }

  .hero-title {
    font-size: 22px;
  }

  .hero-action-row {
    grid-template-columns: 1fr;
  }

  .hero-action-row .button.primary,
  .hero-action-row .button.secondary,
  .hero-action-row .kofi-pill-btn {
    grid-column: 1 / -1;
    width: 100%;
  }

  .appstore-card,
  .compact-shelf-card {
    padding: 14px 10px !important;
    border-radius: 14px;
  }

  .appstore-app-icon {
    width: 48px;
    height: 48px;
    border-radius: 11px;
  }

  .appstore-app-title {
    font-size: 17px;
  }

  .appstore-get-btn {
    min-width: 58px;
    height: 28px;
    padding: 0 10px;
    font-size: 11px;
  }

  .appstore-card-actions {
    grid-template-columns: 1fr;
  }

  .action-btn.download-action,
  .action-btn.secondary-action {
    grid-column: 1 / -1;
    width: 100%;
  }
}
