/* ==========================================================================
   OPILITY DESIGN SYSTEM — GUMROAD OFFICIAL DESIGN SYSTEM & UI (antiwork/gumroad)
   ========================================================================== */

:root {
  --gumroad-pink: #ff90e8;
  --gumroad-yellow: #ffc900;
  --gumroad-red: #ff4a4a;
  --gumroad-cyan: #23a6d5;
  --gumroad-mint: #00f5a0;
  --gumroad-black: #000000;
  --gumroad-white: #ffffff;
  --gumroad-gray-bg: #f4f4f0;
  --gumroad-border: #000000;

  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-heading: 'Plus Jakarta Sans', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  font-family: var(--font-main);
  background-color: var(--gumroad-gray-bg);
  color: var(--gumroad-black);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

/* ==================== GUMROAD TOP NAVBAR ==================== */
.gr-navbar {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: var(--gumroad-white);
  border-bottom: 2px solid var(--gumroad-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  z-index: 100;
}

.gr-nav-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.gr-logo-box {
  display: flex;
  align-items: center;
  gap: 10px;
}

.gr-logo-img {
  height: 36px;
  width: 36px;
  border-radius: 6px;
  border: 2px solid #000;
}

.gr-logo-title {
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -0.5px;
  color: #000;
}

.gr-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border: 1.5px solid #000;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 700;
  background: var(--gumroad-pink);
}

.gr-nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.gr-nav-link {
  padding: 10px 18px;
  font-size: 1rem;
  font-weight: 600;
  color: #000;
  border-radius: 30px;
  transition: all 0.15s ease;
}

.gr-nav-link:hover {
  background: var(--gumroad-black);
  color: var(--gumroad-white);
}

.gr-nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Hamburger toggle: hidden on desktop, shown only in the mobile media query below */
.gr-mobile-nav-toggle {
  display: none;
  background: var(--gumroad-white);
  border: 2px solid #000;
  border-radius: 6px;
  font-size: 1.25rem;
  line-height: 1;
  padding: 6px 12px;
  cursor: pointer;
}

/* ==================== GUMROAD STACKED OFFSET BUTTONS ==================== */
.gr-btn-stacked-wrapper {
  position: relative;
  display: inline-block;
}

.gr-btn-layer-yellow {
  position: absolute;
  inset: 0;
  border-radius: 4px;
  background: var(--gumroad-yellow);
  border: 2px solid #000;
  z-index: 1;
}

.gr-btn-layer-red {
  position: absolute;
  inset: 0;
  border-radius: 4px;
  background: var(--gumroad-red);
  border: 2px solid #000;
  transition: transform 0.15s ease;
  z-index: 2;
}

.gr-btn-stacked-wrapper:hover .gr-btn-layer-red {
  transform: translate(4px, 4px);
}

.gr-btn-main {
  position: relative;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 1.05rem;
  font-weight: 800;
  background: var(--gumroad-black);
  color: var(--gumroad-white);
  border: 2px solid #000;
  border-radius: 4px;
  transition: transform 0.15s ease;
}

.gr-btn-stacked-wrapper:hover .gr-btn-main {
  transform: translate(-4px, -4px);
}

.gr-btn-pink {
  background: var(--gumroad-pink);
  color: #000;
  border: 2px solid #000;
  font-weight: 800;
  padding: 12px 24px;
  border-radius: 4px;
  box-shadow: 3px 3px 0px #000;
  transition: all 0.15s ease;
}

.gr-btn-pink:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0px #000;
}

/* ==================== HERO SECTION ("Go from 0 to $1") ==================== */
.gr-hero-section {
  padding: 80px 20px 60px;
  background: var(--gumroad-gray-bg);
  border-bottom: 2px solid var(--gumroad-border);
  text-align: center;
}

.gr-hero-container {
  max-width: 900px;
  margin: 0 auto;
}

.gr-hero-h1 {
  font-size: 4rem;
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -1.5px;
  color: #000;
  margin-bottom: 24px;
}

.gr-hero-h1 span {
  background: var(--gumroad-pink);
  padding: 0 12px;
  border: 2px solid #000;
  display: inline-block;
  transform: rotate(-1deg);
}

.gr-hero-sub {
  font-size: 1.25rem;
  color: #333333;
  max-width: 680px;
  margin: 0 auto 36px;
  line-height: 1.5;
}

.gr-hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* 100% Equal Hero Action Boxes (Gumroad Button, Patreon Button, Search Box) */
.gr-btn-stacked-wrapper {
  position: relative;
  display: inline-block;
  width: 300px !important;
  min-width: 300px !important;
  max-width: 300px !important;
  height: 52px !important;
}

.gr-btn-main {
  position: relative;
  z-index: 3;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  width: 300px !important;
  min-width: 300px !important;
  max-width: 300px !important;
  height: 52px !important;
  padding: 0 12px !important;
  box-sizing: border-box !important;
  font-size: 0.95rem !important;
  font-weight: 800 !important;
  background: var(--gumroad-black);
  color: var(--gumroad-white);
  border: 2px solid #000 !important;
  border-radius: 4px !important;
  transition: transform 0.15s ease;
  white-space: nowrap !important;
}

.gr-search-box {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  background: #ffffff !important;
  border: 2px solid #000 !important;
  border-radius: 4px !important;
  padding: 4px 6px 4px 14px !important;
  width: 300px !important;
  min-width: 300px !important;
  max-width: 300px !important;
  height: 52px !important;
  box-sizing: border-box !important;
  box-shadow: 3px 3px 0px #000 !important;
}

.gr-search-input {
  border: none;
  outline: none;
  width: 100%;
  font-size: 0.9rem;
  font-family: inherit;
  background: transparent;
}

/* ==================== MARKETPLACE STORE SECTION ==================== */
.gr-store-section {
  padding: 60px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.gr-filter-tabs {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.gr-tab-btn {
  padding: 10px 20px;
  font-size: 0.95rem;
  font-weight: 700;
  background: #ffffff;
  color: #000;
  border: 2px solid #000;
  border-radius: 30px;
  box-shadow: 2px 2px 0px #000;
  transition: all 0.15s ease;
}

.gr-tab-btn:hover, .gr-tab-btn.active {
  background: var(--gumroad-pink);
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0px #000;
}

/* Product Cards Grid */
.gr-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
}

.product-card, .gr-card {
  background: #ffffff;
  border: 2.5px solid #000000;
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.15s ease;
  box-shadow: 4px 4px 0px #000000;
}

.product-card:hover, .gr-card:hover {
  transform: translate(-3px, -3px);
  box-shadow: 7px 7px 0px #000000;
}

.product-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.product-icon {
  font-size: 2.2rem;
}

.product-title, .gr-card-title {
  font-size: 1.18rem;
  font-weight: 900;
  color: #000000;
  margin-bottom: 8px;
  line-height: 1.3;
}

/* Bold Category Department Badge */
.product-category-dept {
  display: inline-block;
  background: #000000;
  color: #ffffff;
  font-weight: 900;
  font-size: 0.82rem;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 10px;
  letter-spacing: 0.5px;
}

.product-desc, .gr-card-desc {
  font-size: 0.9rem;
  color: #334155;
  margin-bottom: 16px;
  line-height: 1.5;
}

/* Bold Pink Gumroad-Style Price Badge */
.gr-price-badge {
  display: inline-block;
  background: var(--gumroad-pink);
  color: #000000;
  font-weight: 900;
  font-size: 1.15rem;
  padding: 6px 16px;
  border: 2.5px solid #000000;
  border-radius: 6px;
  box-shadow: 3px 3px 0px #000000;
  margin-bottom: 16px;
}

/* Bold Call To Action Buy Now Button */
.btn-buy-now {
  display: block;
  width: 100%;
  background: var(--gumroad-pink);
  color: #000000;
  font-weight: 900;
  font-size: 1.05rem;
  padding: 12px 18px;
  border: 2.5px solid #000000;
  border-radius: 8px;
  box-shadow: 4px 4px 0px #000000;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: all 0.15s ease;
}

.btn-buy-now:hover {
  background: #ff70e0;
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0px #000000;
}

/* ==================== GUMROAD SLIDE-OVER CHECKOUT DRAWER ==================== */
.gr-drawer-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 500px;
  height: 100vh;
  background: #ffffff;
  border-left: 3px solid #000;
  z-index: 10001;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.3);
}

.gr-drawer-panel.active {
  transform: translateX(0);
}

.gr-drawer-header {
  padding: 24px;
  background: #000000;
  color: #ffffff;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.gr-drawer-body {
  padding: 28px;
  overflow-y: auto;
  flex: 1;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: none;
}

/* Footer */
.gr-footer {
  background: var(--gumroad-white);
  border-top: 2px solid var(--gumroad-border);
  padding: 48px 20px 28px;
  font-size: 0.9rem;
  font-weight: 600;
}

.gr-footer-columns {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  text-align: left;
  padding-bottom: 32px;
}

.gr-footer-brand p {
  color: #525252;
  font-weight: 600;
  font-size: 0.85rem;
  margin-top: 6px;
  line-height: 1.5;
}

.gr-footer-col h4 {
  font-size: 0.95rem;
  font-weight: 900;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.gr-footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.gr-footer-col ul li a {
  color: #525252;
  font-weight: 600;
  font-size: 0.88rem;
  transition: color 0.15s ease;
}

.gr-footer-col ul li a:hover {
  color: var(--gumroad-black);
  text-decoration: underline;
}

.gr-footer-social {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 24px 0;
  border-top: 2px solid var(--gumroad-border);
}

.gr-footer-social-icon {
  padding: 8px 16px;
  border: 2px solid #000;
  border-radius: 30px;
  font-size: 0.82rem;
  font-weight: 800;
  color: #000;
  transition: all 0.15s ease;
}

.gr-footer-social-icon:hover {
  background: var(--gumroad-pink);
  transform: translate(-2px, -2px);
  box-shadow: 2px 2px 0px #000;
}

.gr-footer-legal {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  padding-top: 20px;
  font-size: 0.82rem;
}

.gr-footer-legal a {
  color: #525252;
  font-weight: 700;
}

.gr-footer-legal a:hover {
  color: var(--gumroad-black);
  text-decoration: underline;
}

.gr-footer-copyright {
  text-align: center;
  color: #8a8a8a;
  font-size: 0.8rem;
  font-weight: 600;
  margin-top: 14px;
}

@media (max-width: 768px) {
  .gr-footer-columns {
    grid-template-columns: 1fr 1fr !important;
    gap: 24px !important;
  }
  .gr-footer-brand {
    grid-column: 1 / -1 !important;
  }
}

/* Info Modal (About / FAQ / Privacy / Terms / Licensing) — matches the
   Gumroad neo-brutalist auth modal styling already used on this site. */
.gr-info-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--gumroad-white);
  border: 2.5px solid #000000;
  border-radius: 12px;
  box-shadow: 8px 8px 0px #000000;
  width: 90%;
  max-width: 520px;
  padding: 28px;
  z-index: 100000;
  display: none;
}

.gr-info-modal.active {
  display: block;
}

.gr-info-modal a {
  color: var(--gumroad-pink);
  text-decoration: underline;
  font-weight: 700;
}

/* Gumroad Neo-Brutalist Customer Auth Modal */
.gr-auth-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  background: #ffffff;
  border: 2.5px solid #000000;
  border-radius: 12px;
  box-shadow: 8px 8px 0px #000000;
  width: 90%;
  max-width: 440px;
  padding: 28px;
  z-index: 100000;
  display: none;
  opacity: 0;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.gr-auth-modal.active {
  display: block;
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.gr-auth-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 2px solid #f0f0f0;
  padding-bottom: 16px;
}

.gr-auth-input {
  width: 100%;
  padding: 12px 14px;
  font-size: 0.95rem;
  border: 2px solid #000000;
  border-radius: 6px;
  background: #ffffff;
  outline: none;
  font-family: inherit;
  box-sizing: border-box;
}

.gr-auth-input:focus {
  border-color: var(--gumroad-pink);
  box-shadow: 2px 2px 0px #000000;
}

/* Ella AI Support Chatbot Floating Widget */
.gr-ella-toggle-btn {
  position: fixed;
  bottom: 24px;
  left: 24px;
  background: var(--gumroad-pink);
  color: #000000;
  font-weight: 900;
  font-size: 0.95rem;
  padding: 8px 18px 8px 8px;
  border: 2.5px solid #000000;
  border-radius: 30px;
  box-shadow: 4px 4px 0px #000000;
  z-index: 999998;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.15s ease;
}

.gr-ella-avatar-img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1.5px solid #000000;
  object-fit: cover;
}

.gr-ella-toggle-btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0px #000000;
}

.gr-ella-chat-box {
  position: fixed;
  bottom: 84px;
  left: 24px;
  width: 360px;
  height: 480px;
  background: #ffffff;
  border: 2.5px solid #000000;
  border-radius: 12px;
  box-shadow: 6px 6px 0px #000000;
  z-index: 999999;
  display: none;
  flex-direction: column;
  overflow: hidden;
}

.gr-ella-chat-box.active {
  display: flex;
}

.gr-ella-chat-header {
  background: #ffffff;
  padding: 14px 16px;
  border-bottom: 2px solid #000000;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.gr-ella-chat-messages {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #f4f4f0;
}

.gr-ella-msg-assistant {
  background: #ffffff;
  border: 2px solid #000000;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.85rem;
  color: #000000;
  line-height: 1.45;
  box-shadow: 2px 2px 0px #000000;
  align-self: flex-start;
  max-width: 90%;
}

.gr-ella-msg-user {
  background: var(--gumroad-pink);
  border: 2px solid #000000;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.85rem;
  color: #000000;
  font-weight: 700;
  line-height: 1.45;
  box-shadow: 2px 2px 0px #000000;
  align-self: flex-end;
  max-width: 90%;
}

.gr-ella-chat-form {
  padding: 10px;
  background: #ffffff;
  border-top: 2px solid #000000;
  display: flex;
  gap: 8px;
}

/* Live Sales Toast Popup (Gumroad Neo-Brutalist Style) */
.gumroad-toast-popup {
  position: fixed;
  bottom: 24px;
  left: 24px;
  background: #ffffff;
  border: 2px solid #000000;
  border-radius: 8px;
  padding: 14px 18px;
  box-shadow: 4px 4px 0px #000000;
  z-index: 99999;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 380px;
  transform: translateY(120%);
  opacity: 0;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.gumroad-toast-popup.active {
  transform: translateY(0);
  opacity: 1;
}

.toast-badge-pink {
  background: var(--gumroad-pink);
  color: #000000;
  font-weight: 900;
  font-size: 0.72rem;
  padding: 3px 8px;
  border: 1.5px solid #000000;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

/* ==================== OPILITY CLEAN CENTERED FOOTER (Exact Image 1 Replica) ==================== */
.op-clean-footer {
  width: 100% !important;
  background: #f8f9fa !important;
  border-top: 1px solid #d1d5db !important;
  border-bottom: 1px solid #d1d5db !important;
  padding: 40px 20px !important;
  margin-top: 60px !important;
  clear: both !important;
  box-sizing: border-box !important;
}

.op-footer-container {
  max-width: 1200px !important;
  margin: 0 auto !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  gap: 20px !important;
}

/* Row 1: Centered Circular Social Icons */
.op-footer-socials {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 14px !important;
  margin-bottom: 4px !important;
}

.op-social-circle {
  width: 42px !important;
  height: 42px !important;
  border-radius: 50% !important;
  border: 1.5px solid #4b5563 !important;
  color: #374151 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #ffffff !important;
  transition: all 0.2s ease !important;
}

.op-social-circle:hover {
  border-color: #000000 !important;
  color: #000000 !important;
  background: var(--gumroad-pink) !important;
  transform: translateY(-2px) !important;
}

/* Row 2: Horizontal Navigation Links */
.op-footer-nav {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 32px !important;
  flex-wrap: wrap !important;
  margin: 4px 0 !important;
}

.op-footer-nav a {
  font-size: 1.05rem !important;
  font-weight: 800 !important;
  color: #1f2937 !important;
  text-decoration: underline !important;
  text-underline-offset: 6px !important;
  text-decoration-color: #ef4444 !important;
  transition: color 0.15s ease !important;
}

.op-footer-nav a:hover {
  color: #000000 !important;
  text-decoration-color: #000000 !important;
}

/* Row 3: Centered Copyright */
.op-footer-copy {
  font-size: 0.85rem !important;
  color: #6b7280 !important;
  font-weight: 600 !important;
  margin: 0 !important;
}

/* ==================== MOBILE RESPONSIVE MEDIA QUERIES ==================== */
@media (max-width: 768px) {
  html, body {
    overflow-x: hidden !important;
    width: 100% !important;
  }

  .gr-navbar {
    height: auto !important;
    padding: 12px 16px !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
  }

  .gr-nav-left {
    width: 100% !important;
    justify-content: space-between !important;
  }

  .gr-badge-pill {
    display: none !important;
  }

  .gr-mobile-nav-toggle {
    display: inline-flex !important;
  }

  /* Hidden by default on mobile; toggled open via JS adding .mobile-nav-open */
  .gr-nav-links {
    width: 100% !important;
    display: none;
    flex-direction: column !important;
    overflow-x: visible !important;
    white-space: normal !important;
    padding-bottom: 6px !important;
  }

  .gr-nav-links.mobile-nav-open {
    display: flex !important;
  }

  .gr-nav-link {
    font-size: 0.95rem !important;
    padding: 10px 12px !important;
    width: 100% !important;
    text-align: left !important;
  }

  .gr-nav-right {
    width: 100% !important;
    justify-content: space-between !important;
  }

  .gr-hero-section {
    padding: 40px 16px !important;
  }

  .gr-hero-h1 {
    font-size: 2.2rem !important;
    line-height: 1.25 !important;
  }

  .gr-hero-sub {
    font-size: 0.95rem !important;
    padding: 0 4px !important;
  }

  .gr-hero-actions {
    flex-direction: column !important;
    width: 100% !important;
    align-items: stretch !important;
  }

  .gr-btn-stacked-wrapper {
    width: 100% !important;
  }

  .gr-btn-main {
    width: 100% !important;
    text-align: center !important;
  }

  .gr-search-box {
    width: 100% !important;
    max-width: 100% !important;
  }

  .gr-product-grid {
    grid-template-columns: 1fr !important;
  }

  .gr-ella-toggle-btn {
    bottom: 16px !important;
    left: 16px !important;
    padding: 6px 14px 6px 6px !important;
    font-size: 0.88rem !important;
  }

  .gr-ella-chat-box {
    width: calc(100vw - 32px) !important;
    max-height: 80vh !important;
    left: 16px !important;
    bottom: 68px !important;
  }
}

