/* ============================================================
   GlintGG sub-brand marks — PRO badge + EDGE / GRADE wordmark lockups
   Canonical, reusable components. SINGLE SOURCE OF TRUTH for the web.
   Link this file; never re-style per surface.

   Mirrors the mobile app:
     mobile/lib/core/widgets/app_primitives.dart
       → AppProBadge                          (PRO)
     mobile/lib/core/widgets/glint_logo.dart
       → ProductWordmark / GlintTextLockup    (EDGE, GRADE)
   The composed GlintGG-mark + product-mark lockup below is web-only: in the
   app the GlintGG context already exists, so product page headers show the
   bare wordmark.

   PRO is a status badge — a tier you hold, not a product — and keeps the
   chip treatment: squared 6px corner radius (mobile AppTheme.radiusSM), a
   product-holo gradient rim, a softly tinted interior over surface-1,
   premium ink, a soft glow. Always a lockup: the word "GlintGG" + the badge,
   never the badge alone. Requires the host page's "Satoshi" @font-face and
   optionally reads --surface-1 (falls back to #111827).

   EDGE and GRADE are products and use their wordmark assets
   (/brand/{edge,grade}-wordmark-{light,dark}.svg): the product letterforms
   over the brand-holo rule. Pick the variant by background luminance — light
   letters on dark surfaces, dark letters on light surfaces — same rule as
   the GlintGG wordmark. The asset carries optical headroom above the letters
   and the holo rule below, so simple center alignment is correct.

   USAGE

     <span class="gg-lockup">GlintGG <span class="gg-badge pro lg">PRO</span></span>

     <span class="gg-wordmark-lockup">
       <img class="glint" src="/brand/wordmark-light.svg" alt="" />
       <img class="product" src="/brand/edge-wordmark-light.svg" alt="GlintGG Edge" />
     </span>
   ============================================================ */

.gg-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.gg-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.3rem 0.62rem;
  border-radius: 6px; /* AppTheme.radiusSM — squared, not pill */
  font-family: "Satoshi", ui-sans-serif, system-ui, -apple-system, sans-serif;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  line-height: 1;
  color: var(--gg-badge-ink);
  background: var(--gg-badge-fill);
  box-shadow: var(--gg-badge-glow);
}

.gg-badge::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.2px;
  background: var(--gg-badge-rim);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.gg-badge.pro {
  --gg-badge-ink: #fff3b8;
  --gg-badge-rim: linear-gradient(135deg, #b9a7ff, #5ce1e6, #7ee36c, #ffe156);
  --gg-badge-fill: linear-gradient(
      135deg,
      rgb(255 225 86 / 16%),
      rgb(185 167 255 / 13%),
      rgb(92 225 230 / 11%)
    ),
    var(--surface-1, #111827);
  --gg-badge-glow: 0 2px 12px rgb(255 225 86 / 16%), 0 1px 8px rgb(92 225 230 / 9%);
}

/* Section-header size (e.g. paywall feature heads). */
.gg-badge.lg {
  padding: 0.44rem 0.85rem;
  font-size: 0.92rem;
  letter-spacing: 0.14em;
  font-weight: 900;
  border-radius: 8px;
}

/* EDGE / GRADE wordmark lockup: the GlintGG mark beside the product
   wordmark. Scales with the container's font-size; the 0.85em / 0.92em pair
   is the canonical 26:28 lockup ratio that makes the two cap bands read as
   one optical size. */
.gg-wordmark-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
}

.gg-wordmark-lockup .glint {
  height: 0.85em;
  width: auto;
}

.gg-wordmark-lockup .product {
  height: 0.92em;
  width: auto;
}
