/* ─── COMING SOON ──────────────────────────────────────────────────── */
.hero {
  padding-bottom: 0;
}

.hero .purchase-section {
  margin-top: 56px;
  padding-bottom: 0;
}

.purchase-section {
  margin-top: 32px;
}

.purchase-section .btn-primary:disabled {
  background: var(--surface2);
  color: var(--muted);
  cursor: not-allowed;
  box-shadow: none;
}

.purchase-section .btn-primary:disabled:hover {
  background: var(--surface2);
  transform: none;
  box-shadow: none;
}

.sg-coming-soon-inner .sg-coming-soon-tag {
  margin-left: auto;
}

.cta-section .sg-coming-soon-tag {
  margin: 0 auto;
}

.sg-coming-soon-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(var(--accent-rgb), 0.1);
  border: 1px solid rgba(var(--accent-rgb), 0.25);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

.sg-coming-soon-tag::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* ─── TAB NAV ──────────────────────────────────────────────────────── */
.sg-tab-nav {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 32px 40px;
}

/* the tabs' own top/bottom padding is symmetric, so the first showcase
   section shouldn't add its normal 64px on top of that */
#supergroup-tab {
  padding-top: 0;
}

.sg-tab-nav a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.sg-tab-nav a:hover {
  border-color: rgba(var(--accent-rgb), 0.4);
  color: var(--text);
  background: var(--surface2);
}

/* ─── SHOWCASE (shared base) ──────────────────────────────────────── */
.showcase {
  padding: 64px 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.showcase-inner {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
}

.showcase-header { padding: 48px 56px 40px; }
.showcase-body   { padding: 0 24px 24px; }
.showcase-header .section-desc { margin-bottom: 0; }

.showcase-details { padding: 24px 56px 48px; }

.showcase-body .screenshot-frame img,
.showcase-details .screenshot-frame img {
  display: block;
  width: 100%;
  height: auto;
}

/* ─── FEATURE VISUAL SIZING ───────────────────────────────────────── */
.sg-visual-narrow {
  max-width: 340px;
  width: 100%;
  margin: 0 auto;
}

/* crop the top 10% of rightclickgroups.png (native 308x261 -> keep bottom
   ~235px) by capping the frame's aspect ratio and bottom-anchoring the
   image so the excess spills off the top edge, clipped, rather than
   editing the source asset */
.sg-visual-narrow .screenshot-frame {
  position: relative;
  aspect-ratio: 308 / 235;
}

.sg-visual-narrow .screenshot-frame img {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: auto;
}

/* fields.png is a narrow, tall dropdown popup - cap it small so it reads
   like a real UI menu instead of stretching across the column */
.sg-visual-xnarrow {
  max-width: 220px;
  width: 100%;
  margin: 0 auto;
}

/* crop the bottom 33% of fields.png (native 183x312 -> keep top ~209px)
   by capping the frame's aspect ratio and letting the image overflow,
   clipped, rather than editing the source asset */
.sg-visual-xnarrow .screenshot-frame {
  aspect-ratio: 183 / 209;
}

.sg-visual-xnarrow .screenshot-frame img {
  height: auto;
}

.sg-visual-wide {
  min-width: 0;
  width: 100%;
}

.sg-groupbar-visual {
  min-width: 0;
  width: 100%;
}

.sg-similarity-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sg-similarity-menu {
  max-width: 400px;
  width: 100%;
  margin: 0 auto;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface2);
}

.sg-similarity-menu img { display: block; width: 100%; height: auto; }

.sg-applied-visual {
  min-width: 0;
  width: 100%;
}

/* ─── RESPONSIVE ───────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .showcase-header { padding: 40px 32px 32px; }
  .showcase-details { padding: 24px 32px 40px; }
}

@media (max-width: 640px) {
  .showcase { padding: 48px 16px; }
  .showcase-header { padding: 28px 20px 24px; }
  .showcase-body { padding: 0 20px 20px; }
  .showcase-details { padding: 20px 20px 32px; }
  .sg-tab-nav { padding: 20px 16px; }
  #supergroup-tab { padding-top: 0; }
  .sg-coming-soon-inner { flex-wrap: wrap; }
  .sg-coming-soon-inner .sg-coming-soon-tag { margin-left: 0; }
  h1 { font-size: clamp(36px, 9vw, 52px); }
}
