/* Glorb AI · the selling layer (popup + smart buy bar). Cream cards, ink outlines, lime = free, yellow = paid. */
.gl-up, .gl-bar {
  --gl-ink: #0D221C; --gl-card: #FDFBF0; --gl-well: #EEF1E8; --gl-sky: #0B2620; --gl-panel: #103A31; --gl-lime: #C9F24B; --gl-lime-d: #86A82A;
  --gl-yellow: #FFD21F; --gl-yellow-d: #B89500; --gl-muted: #55645E; --gl-line: rgba(13, 34, 28, .12); --gl-line2: rgba(13, 34, 28, .26);
  --gl-sans: "Bricolage Grotesque", ui-sans-serif, -apple-system, "Segoe UI", sans-serif; --gl-mono: "Space Mono", ui-monospace, monospace;
  font-family: var(--gl-sans); color: var(--gl-ink); -webkit-font-smoothing: antialiased; text-align: left;
}
.gl-i { width: 15px; height: 15px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.gl-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap; min-height: 40px; padding: 0 16px;
  border-radius: 10px; border: 2px solid var(--gl-ink); background: var(--gl-card); color: var(--gl-ink); box-shadow: 0 3px 0 rgba(13, 34, 28, .3);
  font: 700 15px/1 var(--gl-sans); text-decoration: none; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease;
  -webkit-tap-highlight-color: transparent;
}
.gl-btn--lime { background: var(--gl-lime); box-shadow: 0 3px 0 var(--gl-lime-d); }
.gl-btn--yellow { background: var(--gl-yellow); box-shadow: 0 3px 0 var(--gl-yellow-d); }
@media (hover: hover) { .gl-btn:hover { transform: translateY(-2px); } }
.gl-btn:active { transform: translateY(2px); box-shadow: none; }
.gl-soon { font: 700 12px/1 var(--gl-mono); padding: 6px 10px; border-radius: 999px; background: var(--gl-ink); color: var(--gl-lime); white-space: nowrap; }

/* the kit mockup in small: a night-sky cover card with the kit's icon, tilted on its colour */
.gl-mock { position: relative; display: block; width: 100%; height: 100%; border-radius: 12px; overflow: hidden; background: #E6F7B5; }
.gl-mock--editor { background: #CFE7DD; }
.gl-mock--developer { background: #F3EBD3; }
.gl-mock--bundle { background: var(--gl-yellow); }
.gl-mock--starter { background: var(--gl-lime); }
.gl-mock__c { position: absolute; left: 50%; top: 50%; display: grid; place-items: center; width: 40px; height: 50px; border-radius: 6px; background: var(--gl-sky); border: 1.5px solid var(--gl-ink); translate: -50% -42%; rotate: -5deg; z-index: 2; }
.gl-mock__c img { width: 26px; height: 26px; padding: 3px; border-radius: 6px; background: var(--gl-card); }
.gl-mock__c--b { z-index: 1; background: var(--gl-panel); translate: -20% -48%; rotate: 9deg; }

/* ---------- the popup ---------- */
.gl-up {
  width: min(460px, calc(100% - 32px)); max-height: calc(100dvh - 32px); overflow: auto; padding: 26px 24px 14px; margin: auto;
  border: 2px solid var(--gl-ink); border-radius: 22px; background: var(--gl-card); box-shadow: 0 10px 0 var(--gl-lime-d);
}
.gl-up:focus { outline: none; }
.gl-up::backdrop { background: rgba(4, 14, 11, .72); }
.gl-up[open] { animation: gl-pop .28s ease-out; }
@keyframes gl-pop { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.gl-up__x { position: absolute; top: 12px; right: 12px; margin: 0; }
.gl-up__x button { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--gl-line2); background: var(--gl-card); color: var(--gl-ink); cursor: pointer; }
.gl-up__tag { margin: 0; font: 700 12px/1 var(--gl-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--gl-muted); }
.gl-up h2 { margin: 10px 0 0; padding-right: 40px; font: 800 34px/1 var(--gl-sans); letter-spacing: -.025em; text-wrap: balance; }
.gl-up__lead { margin: 10px 0 0; font-size: 15px; line-height: 1.45; color: var(--gl-muted); text-wrap: pretty; }
.gl-up__list { display: grid; gap: 10px; margin: 18px 0 0; padding: 0; list-style: none; }
.gl-up__list li { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px; border-radius: 14px; border: 1px solid var(--gl-line); }
.gl-up__best { background: var(--gl-well); border: 2px solid var(--gl-ink) !important; }
.gl-up__art { display: block; width: 72px; height: 64px; }
.gl-up__name { display: grid; gap: 3px; min-width: 0; }
.gl-up__name b { font: 800 19px/1.05 var(--gl-sans); letter-spacing: -.02em; white-space: nowrap; }
.gl-up__line { font-size: 13px; line-height: 1.3; color: var(--gl-muted); text-wrap: balance; }
.gl-up__price { font: 700 13px/1.3 var(--gl-mono); }
.gl-up__price s { font-weight: 400; color: var(--gl-muted); }
.gl-up form { margin: 0; }
.gl-up__later { display: block; margin: 8px auto 0; border: 0; background: none; padding: 8px; cursor: pointer; font: 500 14px/1.4 var(--gl-sans); color: var(--gl-muted); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- the smart buy bar ---------- */
.gl-bar {
  position: fixed; z-index: 40; left: 50%; bottom: 16px; width: min(660px, calc(100% - 32px));
  display: grid; grid-template-columns: 52px minmax(0, 1fr) auto 32px; align-items: center; gap: 12px; padding: 8px 8px 8px 10px;
  background: var(--gl-card); border: 2px solid var(--gl-ink); border-radius: 18px; box-shadow: 0 6px 0 rgba(0, 0, 0, .35);
  translate: -50% calc(100% + 40px); opacity: 0; pointer-events: none;
  transition: translate .38s cubic-bezier(.2, .8, .2, 1), opacity .25s ease;
}
.gl-bar.is-on { translate: -50% 0; opacity: 1; pointer-events: auto; }
.gl-still { transition: none; }
.gl-bar__art { display: block; width: 52px; height: 44px; }
.gl-bar__art .gl-mock { border-radius: 10px; }
.gl-bar__art .gl-mock__c { width: 30px; height: 38px; }
.gl-bar__art .gl-mock__c img { width: 20px; height: 20px; }
.gl-bar__words { display: grid; gap: 2px; min-width: 0; }
.gl-bar__words b { font: 800 17px/1.1 var(--gl-sans); letter-spacing: -.015em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gl-bar__words span { font-size: 13px; line-height: 1.3; color: var(--gl-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gl-bar__go { min-height: 44px; }
.gl-bar__x { display: grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 8px; background: none; color: var(--gl-muted); cursor: pointer; }
.gl-bar__x:hover { background: var(--gl-well); color: var(--gl-ink); }
.gl-bar__x .gl-i { width: 14px; height: 14px; }

@media (max-width: 639px) {
  .gl-bar { bottom: 0; width: 100%; border-radius: 16px 16px 0 0; border-width: 2px 0 0; box-shadow: none;
    grid-template-columns: minmax(0, 1fr) auto 28px; gap: 10px; padding: 10px 8px calc(10px + env(safe-area-inset-bottom)) 16px; }
  .gl-bar__art { display: none; }
  .gl-bar__words b { font-size: 16px; }
  .gl-bar__words span { font-size: 12px; }
  .gl-bar__go { min-height: 42px; padding: 0 14px; font-size: 14px; }
  .gl-up { padding: 22px 16px 12px; }
  .gl-up h2 { font-size: 29px; }
  .gl-up__list li { grid-template-columns: 56px minmax(0, 1fr) auto; grid-template-areas: "art name name" "art price btn"; column-gap: 12px; row-gap: 6px; }
  .gl-up__art { grid-area: art; width: 56px; height: 56px; }
  .gl-up__name { display: contents; }
  .gl-up__name b { grid-area: name; font-size: 18px; align-self: end; }
  .gl-up__price { grid-area: price; align-self: center; }
  .gl-up__list .gl-btn, .gl-up__list .gl-soon { grid-area: btn; justify-self: end; }
  .gl-up__list .gl-btn { min-height: 38px; padding: 0 14px; font-size: 14px; }
  .gl-up__line { display: none; }
}
@media (prefers-reduced-motion: reduce) { .gl-up[open] { animation: none; } .gl-bar, .gl-btn { transition: none; } }

/* ---------- the "landing soon" box ---------- */
.gl-soon__so { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.gl-soon__so .gl-btn { flex: 1 1 0; }
.gl-soon__free { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; align-items: center; gap: 12px; margin: 18px 0 8px; padding: 10px; border-radius: 14px; background: var(--gl-well); }
.gl-soon__free > .gl-mock { width: 56px; height: 50px; }
.gl-soon__free b { display: block; font: 800 16px/1.15 var(--gl-sans); }
.gl-soon__free span span { font-size: 13px; color: var(--gl-muted); }
@media (max-width: 639px) { .gl-soon__free { grid-template-columns: minmax(0, 1fr) auto; } .gl-soon__free > .gl-mock { display: none; } }
