/* ====================================================================
   OSGWeb.ge — Exclusivity Badge (hanging tag)
   hanging-badge.css
   Load AFTER style.css in <head>
   ==================================================================== */

/* ── SECTION CONTEXT ──────────────────────────────────────────────── */
#pricing {
  position: relative;
  overflow: visible !important;
}

/* ══════════════════════════════════════════════════════════════════
   TAG ROOT & PENDULUM
   A slim tag on a twisted cord, hanging from a pin centered above the
   pricing heading at every width. It's in the normal flow (first thing
   in the section's container), so the heading always starts below it,
   whatever the language or text size. The negative top margin lifts the
   pin into #pricing's top padding. hanging-badge.js swings the whole
   root around the pin (`--sign-rotate`) and stretches/twists the cord.
══════════════════════════════════════════════════════════════════ */
.discount-sign-root {
  --sign-rotate: 0deg;

  position: relative;
  z-index: 30;
  width: fit-content;
  margin: -2rem auto 1.75rem;

  display: flex;
  flex-direction: column;
  align-items: center;

  transform-origin: top center;
  transform: rotate(var(--sign-rotate));
  will-change: transform;
  cursor: default;
  user-select: none;

  opacity: 1;
  visibility: visible;
  transition: opacity 0.25s ease;
}

body.mobile-nav-is-open .discount-sign-root {
  opacity: 0;
  pointer-events: none;
}

/* ── PIN — small brushed-metal head ──────────────────────────────── */
.sign-nail {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #F2FBF7 0%, #A9C2B8 32%, #4C625A 72%, #1B2622 100%);
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.65),
    0 0 0 3px rgba(16, 185, 129, 0.10);
  flex-shrink: 0;
  position: relative;
  z-index: 3;
}

/* ── CORD ─────────────────────────────────────────────────────────
   Two thin strands twisted around each other. The SVG stretches to the
   height set here (preserveAspectRatio="none"), and the strokes keep
   their pixel width (vector-effect). It's drawn over the tag so the cord
   runs into the eyelet. */
.rope-svg {
  display: block;
  overflow: visible;
  flex-shrink: 0;
  height: 56px;
  margin-top: -2px;
  position: relative;
  z-index: 2;
}

/* ══════════════════════════════════════════════════════════════════
   TAG — dark emerald glass, like the site's cards
══════════════════════════════════════════════════════════════════ */
.sign-card {
  /* pulls the tag up so the cord's end sits in the eyelet's center
     (1px border + 6px offset + 5px radius) */
  margin-top: -12px;
  position: relative;
  z-index: 1;
  overflow: hidden;
  will-change: transform;

  min-width: 188px;
  max-width: 220px;
  padding: 1.45rem 1.25rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(16, 185, 129, 0.32);
  background: linear-gradient(165deg, rgba(17, 53, 40, 0.97) 0%, rgba(4, 17, 12, 0.98) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 22px 44px -14px rgba(0, 0, 0, 0.75),
    0 14px 36px -18px rgba(16, 185, 129, 0.45);
}

/* soft emerald light from the top edge */
.sign-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(16, 185, 129, 0.16) 0%, transparent 70%);
  pointer-events: none;
}

/* ── EYELET — one metal ring at the top center ──────────────────── */
.sign-hole {
  position: absolute;
  top: 6px;
  left: 50%;
  width: 10px;
  height: 10px;
  margin-left: -5px;
  border-radius: 50%;
  background: #020A07;
  box-shadow:
    inset 0 1px 2px rgba(0, 0, 0, 0.9),
    0 0 0 1.5px #8DA59C,
    0 0 0 3px rgba(0, 0, 0, 0.35);
  z-index: 1;
}

/* ── TEXT ──────────────────────────────────────────────────────── */
.sign-inner {
  position: relative;
  z-index: 1;
  text-align: center;
}

/* "● NOW ACCEPTING" — the dot pulses like a live status light */
.sign-eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  margin-bottom: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-mint);
}
.sign-live {
  position: relative;
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-mint);
  box-shadow: 0 0 6px rgba(52, 211, 153, 0.8);
}
.sign-live::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid var(--accent-mint);
  animation: signLive 2.2s ease-out infinite;
}
@keyframes signLive {
  from { transform: scale(1); opacity: 0.9; }
  to   { transform: scale(3); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .sign-live::after { animation: none; opacity: 0; }
}

.sign-headline {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-main);
  margin-bottom: 0.7rem;
}
.sign-num {
  color: var(--accent-mint);
}

.sign-sep {
  height: 1px;
  margin: 0 0.25rem 0.6rem;
  background: linear-gradient(to right, transparent, rgba(16, 185, 129, 0.45), transparent);
}

.sign-footer {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-color-light);
}

/* ══════════════════════════════════════════════════════════════════
   PRICING CARD SCROLL REVEAL
══════════════════════════════════════════════════════════════════ */
.pricing-card {
  transition:
    opacity    0.75s cubic-bezier(0.16, 1, 0.3, 1),
    transform  0.75s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow var(--transition-smooth, 0.5s cubic-bezier(0.16, 1, 0.3, 1));
}

.pricing-card.pre-reveal {
  opacity: 0 !important;
  transform: translateY(52px) scale(0.96) !important;
  pointer-events: none;
}

.pricing-card.individual-plan {
  opacity: 1 !important;
  transform: none !important;
  pointer-events: auto;
}

/* ══════════════════════════════════════════════════════════════════
   RESPONSIVE — phones: shorter cord, a slightly smaller tag, lifted
   higher into the section's top padding; desktops: a larger tag.
══════════════════════════════════════════════════════════════════ */
@media (max-width: 767px) {
  .discount-sign-root { margin: -3.25rem auto 1.5rem; }
  .rope-svg { height: 44px; }
  .sign-card {
    min-width: 172px;
    padding: 1.35rem 1.1rem 0.9rem;
  }
  .sign-headline { font-size: 1rem; }
}

@media (min-width: 992px) {
  .discount-sign-root { margin-top: -2.5rem; }
  .sign-card {
    min-width: 214px;
    max-width: 240px;
    padding: 1.6rem 1.4rem 1.1rem;
  }
  .sign-eyebrow,
  .sign-footer { font-size: 0.66rem; }
  .sign-headline { font-size: 1.22rem; }
}

/* Wide desktops: hangs on the right, beside the subtitle and toggle (the
   pin sits below the heading so the cord never crosses it). */
@media (min-width: 1200px) {
  .discount-sign-root {
    position: absolute;
    top: 5.25rem;
    right: 2rem;
    margin: 0;
  }
  .rope-svg { height: 40px; }
}


/* ══════════════════════════════════════════════════════════════════
   LANGUAGE VARIANTS
   Georgian has no capitals and the Georgian/Russian text renders in
   Noto Sans Georgian / a sans fallback (Anta and JetBrains Mono have no
   Georgian glyphs): no wide letter-spacing for Georgian, and the
   headline a notch smaller, as those faces run wider than Anta.
══════════════════════════════════════════════════════════════════ */
body[data-lang="ge"] .sign-eyebrow,
body[data-lang="ge"] .sign-footer {
  font-family: var(--font-body);
  font-size: 0.66rem;
  letter-spacing: 0.02em;
}

body[data-lang="ge"] .sign-headline,
body[data-lang="ru"] .sign-headline {
  font-size: 0.98rem;
}

@media (max-width: 767px) {
  body[data-lang="ge"] .sign-headline,
  body[data-lang="ru"] .sign-headline {
    font-size: 0.92rem;
  }
}

@media (min-width: 992px) {
  body[data-lang="ge"] .sign-eyebrow,
  body[data-lang="ge"] .sign-footer { font-size: 0.74rem; }
  body[data-lang="ge"] .sign-headline,
  body[data-lang="ru"] .sign-headline { font-size: 1.08rem; }
}
