/*
 * FH6 Apex — custom overrides. Survives theme updates.
 * Palette/font come from theme settings (global.properties → CSS vars in master.njk).
 * This file adds the premium "Apex" polish on top of pro.css + Bootstrap.
*/

/* ---------- Type ---------- */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&display=swap');

h1, h2, h3, h4, h5, .card-title {
  font-family: 'Space Grotesk', var(--bs-font-sans-serif), sans-serif;
  letter-spacing: -0.02em;
}

/* Utility classes the theme markup uses but Bootstrap doesn't provide */
.size-5 { width: 1.2rem; height: 1.2rem; }
.animate-spin { animation: fh6-spin 1s linear infinite; }
@keyframes fh6-spin { to { transform: rotate(360deg); } }

/* ---------- Brand lockup (navbar) ---------- */
.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
}
.brand-lockup .brand-mark {
  width: 22px;
  height: 22px;
  color: var(--cl-accent);
  flex: none;
}
.brand-lockup .brand-name {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.18rem;
  line-height: 1;
  letter-spacing: -0.01em;
  color: rgb(var(--cl-snow));
}
.brand-lockup .brand-badge {
  display: inline-flex;
  align-items: center;
  align-self: center;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cl-background-primary);
  background: var(--cl-accent);
  border-radius: 5px;
  padding: 0.18rem 0.38rem 0.16rem;
  line-height: 1;
}

/* ---------- Announcement: thin, subtle strip ---------- */
.announcement {
  background: var(--cl-background-secondary);
  color: rgba(var(--cl-snow), 0.62);
  border-bottom: 1px solid var(--cl-border);
  padding: 0.55rem 0;
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.announcement a {
  color: var(--cl-accent);
}

/* ---------- Hero ---------- */
.hero {
  background-color: var(--cl-background-primary);
  min-height: auto;
}
.hero .bg-overlay {
  background: radial-gradient(90% 80% at 82% 16%, rgba(var(--cl-accent-rgb), 0.10), transparent 60%);
}
.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
  max-width: 1160px;
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
}
.hero .content {
  text-align: left;
  max-width: none;
  margin: 0;
}
.hero .content h1 {
  font-size: clamp(2.5rem, 5vw, 3.6rem);
  font-weight: 700;
  line-height: 1.02;
  margin-bottom: 1rem;
}
.hero .content > p {
  color: rgba(var(--cl-snow), 0.6);
  font-size: 1.05rem;
  line-height: 1.55;
  max-width: 30rem;
  margin: 0 0 1.75rem;
}
.hero .content a {
  margin-bottom: 0;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.hero-secondary-link {
  color: rgba(var(--cl-snow), 0.72);
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
}
.hero-secondary-link:hover {
  color: var(--cl-accent);
}
.hero-trust {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  color: rgba(var(--cl-snow), 0.55);
  font-size: 0.9rem;
}
.hero-trust .ht-star {
  color: var(--cl-accent);
}
.hero-trust .ht-dot {
  color: rgba(var(--cl-snow), 0.25);
}
@media (max-width: 768px) {
  .hero-trust {
    justify-content: center;
  }
}

/* Hero product shot — external GIF (transparent bg) floats on the dark. */
.hero .image {
  background: url('https://media0.giphy.com/media/v1.Y2lkPTc5MGI3NjExNXZtOTFrdnJndWI0N3J4bGM4cGJqMHhodmkweWlpN3Uxendqb3Q3ciZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9cw/0GUX7CYE1YeszvBf9v/giphy.gif') center / contain no-repeat;
  min-height: 420px;
  filter: drop-shadow(0 28px 55px rgba(0, 0, 0, 0.6));
}
.hero .image img {
  display: none;
}
.hero .stats-wrapper {
  margin-top: 1.75rem;
}

@media (max-width: 768px) {
  .hero .container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .hero .content {
    text-align: center;
  }
  .hero .content > p {
    margin-left: auto;
    margin-right: auto;
  }
  .hero .image {
    min-height: 300px;
  }
}

/* ---------- Buttons ---------- */
.btn-primary {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  border-radius: 11px;
  padding: 0.7rem 1.4rem;
  color: var(--cl-background-primary);
}
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
  color: var(--cl-background-primary);
}

/* ---------- Product / pricing cards ---------- */
.card {
  border-radius: 14px;
  background: #181E14;
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: border-color 0.18s ease, transform 0.18s ease;
}
.card:hover {
  border-color: rgba(var(--cl-accent-rgb), 0.45);
  transform: translateY(-3px);
}
/* Force a defined surface on the non-featured cards (beats pro.css's
   `.card { background: var(--bs-body-bg) }` which made them blend in). */
.card.pricing-card:not(.featured) {
  background: linear-gradient(180deg, #1d2318, #141911) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  box-shadow: 0 16px 36px -22px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
}
.card.pricing-card:not(.featured):hover {
  border-color: rgba(var(--cl-accent-rgb), 0.5) !important;
}
/* Theme-generated tier covers (replaces the uploaded art) */
.cover-gen {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 1.15rem 1.25rem;
  background:
    radial-gradient(120% 95% at 88% -15%, rgba(var(--cl-accent-rgb), 0.20), transparent 55%),
    linear-gradient(160deg, #12170f 0%, #0b0d0a 100%);
  border-bottom: 1px solid var(--cl-border);
  overflow: hidden;
}
.cover-gen::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(var(--cl-accent-rgb), 0.05) 1px, transparent 1px);
  background-size: 100% 11px;
  opacity: 0.5;
  pointer-events: none;
}
.cover-gen .cover-mark {
  position: absolute;
  top: 1rem;
  right: 1.1rem;
  width: 26px;
  height: 26px;
  color: var(--cl-accent);
}
.cover-gen .cover-title {
  position: relative;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  color: #fff;
}
.cover-gen .cover-sub {
  position: relative;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.68rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(var(--cl-snow), 0.5);
  margin-top: 0.35rem;
}
.card.featured .cover-gen {
  background:
    radial-gradient(120% 95% at 88% -15%, rgba(var(--cl-accent-rgb), 0.32), transparent 55%),
    linear-gradient(160deg, #161c0e 0%, #0b0d0a 100%);
}
/* Lifetime = best value: lime border + glow */
.card.featured {
  background: linear-gradient(180deg, #1f2814, #14180f) !important;
  border: 1px solid rgba(var(--cl-accent-rgb), 0.75) !important;
  box-shadow: 0 18px 50px -24px rgba(var(--cl-accent-rgb), 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
}
.card .price {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
}

/* ---------- Pricing cards (license tiers, no image) ---------- */
.pricing-card {
  display: flex;
  flex-direction: column;
  position: relative;
}
.pricing-card .card-body {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1.5rem 1.4rem;
  min-height: 190px;
}
.pricing-card .tier-best {
  position: absolute;
  top: 1.1rem;
  right: 1.1rem;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cl-background-primary);
  background: var(--cl-accent);
  border-radius: 5px;
  padding: 0.15rem 0.4rem;
  line-height: 1;
}
.pricing-card .tier-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.pricing-card .tier-mark {
  width: 18px;
  height: 18px;
  color: var(--cl-accent);
  flex: none;
}
.pricing-card .card-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  margin: 0;
  color: rgb(var(--cl-snow));
}
.pricing-card .price {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 2rem;
  line-height: 1;
  color: #fff;
  margin: 0.4rem 0 0;
}
.pricing-card .stock {
  font-size: 0.8rem;
  margin: 0;
}
.pricing-card .tier-cta {
  margin-top: auto;
  padding-top: 1rem;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--cl-accent);
}

/* ---------- Product page ---------- */
.product-wrapper h1 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
}
.product-wrapper .fs-5 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.7rem !important;
}
.product-wrapper .carousel img,
.product-wrapper .card-img-top {
  border-radius: 14px;
}
.product-wrapper .thumbnails button img {
  border-radius: 8px;
}
.product-wrapper .editor {
  color: rgba(var(--cl-snow), 0.72);
  line-height: 1.65;
}
/* App demo replaces the uploaded art (sync with homepage) */
.product-shot {
  min-height: 520px;
  background: url('https://media0.giphy.com/media/v1.Y2lkPTc5MGI3NjExNXZtOTFrdnJndWI0N3J4bGM4cGJqMHhodmkweWlpN3Uxendqb3Q3ciZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9cw/0GUX7CYE1YeszvBf9v/giphy.gif') center / contain no-repeat;
  filter: drop-shadow(0 28px 55px rgba(0, 0, 0, 0.55));
}
@media (max-width: 991px) {
  .product-shot { min-height: 340px; }
}
/* Hide live-stats (read weak at "1" on a fresh shop) */
.product-wrapper .live-stats {
  display: none;
}
/* Align Add to Cart / Buy Now buttons + their icons */
.product-wrapper .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
}
/* Equal height for both buy buttons (Add to Cart is btn-primary, Buy Now is
   btn-outline-primary — match their padding so the borders line up) */
.buy-buttons .btn {
  padding: 0.7rem 1.4rem;
}

/* ---------- Currency selector dropdown cleanup ---------- */
.currency-selector .choices__list--dropdown {
  background: var(--cl-background-secondary) !important;
  border: 1px solid var(--cl-border) !important;
  border-radius: 12px !important;
  overflow: hidden;
}
.currency-selector .choices__list--dropdown .choices__item {
  color: rgb(var(--cl-snow));
  padding-top: 0.4rem;
  padding-bottom: 0.4rem;
}
.currency-selector .choices__list--dropdown .symbol {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.4rem;
  height: 1.5rem;
  padding: 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1;
  overflow: visible;
  background: rgba(var(--cl-accent-rgb), 0.14);
  color: var(--cl-accent) !important;
  border-radius: 6px;
  margin-right: 0.6rem;
}
.currency-selector .choices__list--dropdown .choices__item {
  display: flex;
  align-items: center;
}
.currency-selector .choices__list--dropdown .code {
  color: rgb(var(--cl-snow));
}
.currency-selector .choices__item--selectable.is-highlighted {
  background: rgba(var(--cl-accent-rgb), 0.14) !important;
}

/* ---------- Section headings ---------- */
.section-title h2 {
  letter-spacing: -0.02em;
}