/* ==========================================================================
   XSite Bunny — Shared Stylesheet
   Brand: black background, teal #1ED5C3, purple #5E17EB
   Display: Bagel Fat One | Body: Inter
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@700;800&family=Silkscreen:wght@400;700&family=Raleway:wght@400;500;600;700;800&display=swap');

:root {
  --black: #0a0a0a;
  --black-soft: #131313;
  --teal: #1ED5C3;
  --purple: #5E17EB;
  --purple-light: #7c3aed;
  --white: #ffffff;
  --gray: #a3a3a3;
  --gray-dark: #262626;
  --gray-border: #2e2e2e;

  --font-display: 'Baloo 2', system-ui, sans-serif;
  --font-pixel: 'Silkscreen', monospace;
  --font-body: 'Raleway', system-ui, sans-serif;

  --radius: 14px;
  --radius-lg: 24px;
  --max-width: 1200px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Typography ---------- */
h1, h2, h3, h6, .display {
  font-family: 'Avatar', var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.01em;
  color: var(--white);
}

h1 { font-size: clamp(2.25rem, 5vw, 4rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.75rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }
h6 { font-size: 1.1rem; }

/* h4/h5 use Raleway per the site's real type scale, not the display font */
h4, h5 { font-family: var(--font-body); font-weight: 600; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.25rem; }

/*
  ---------------------------------------------------------------
  AVATAR FONT — paid Fontfabric typeface, not on Google Fonts.
  Once a licensed web-font file is available, uncomment and point
  these paths at the real files (woff2 preferred) — h1/h2/h3/h6
  will then render in true Avatar instead of the Bagel Fat One
  fallback above.
  ---------------------------------------------------------------
  @font-face {
    font-family: 'Avatar';
    src: url('../fonts/Avatar-Regular.woff2') format('woff2');
    font-weight: 400;
    font-display: swap;
  }
*/

p { color: var(--gray); }
p.lead { color: var(--white); font-size: 1.1rem; -webkit-text-stroke: 0; }

.pixel {
  font-family: var(--font-pixel);
  letter-spacing: 0.03em;
}

.eyebrow-pixel {
  font-family: var(--font-pixel);
  color: var(--white);
  font-size: 1.1rem;
  letter-spacing: 0.02em;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.btn:hover { transform: translateY(-1px); opacity: 0.92; }
.btn:active { transform: translateY(0); }

.btn-purple { background: var(--purple); color: var(--white); }
.btn-teal { background: var(--teal); color: var(--black); }
.btn-outline { background: transparent; border-color: var(--white); color: var(--white); }
.btn-outline-teal { background: transparent; border-color: var(--teal); color: var(--teal); }
.btn-ghost { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.35); color: var(--white); }

/* ---------- Nav ---------- */
.nav {
  background: var(--black);
  padding: 16px 24px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(100deg, #e5d4f7, #f3d9e8);
  border-radius: 999px;
  padding: 14px 24px;
}

.nav-inner .nav-icons > a { color: var(--purple); }
.nav-inner .nav-icons > button { color: var(--purple); }

.logo-text {
  font-family: 'Avatar', var(--font-display);
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--purple);
  -webkit-text-stroke: 2px var(--white);
  paint-order: stroke fill;
  letter-spacing: 0.02em;
}

.logo img {
  height: 40px;
  width: auto;
  display: block;
}

.nav-icons {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-decorative {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  position: relative;
}
.nav-decorative svg { width: 22px; height: 22px; }

.nav-dropdown {
  position: fixed;
  inset: 0;
  background: var(--white);
  z-index: 300;
  display: flex;
  flex-direction: column;
  padding: 32px 40px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease;
}
.nav-dropdown.open { opacity: 1; visibility: visible; }

.nav-dropdown-close {
  align-self: flex-end;
  background: none;
  border: none;
  color: var(--purple);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  margin-bottom: 40px;
  padding: 0;
}

.nav-dropdown a {
  display: block;
  padding: 18px 0;
  color: var(--purple);
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 2rem;
}
.nav-dropdown a.active { color: #e4d9f7; }
.nav-dropdown a:hover { opacity: 0.8; }

.nav-cart {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--purple);
}

.nav-cart svg { width: 26px; height: 26px; }

.cart-count {
  position: absolute;
  top: -8px; right: -10px;
  background: var(--purple);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.65rem;
  width: 18px; height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- XB Rx Carousel ---------- */
.xbrx-hero {
  width: 100%;
  aspect-ratio: 3/4;
  max-height: 520px;
  object-fit: cover;
  display: block;
}

.xbrx-partners {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  justify-items: center;
  gap: 28px 24px;
  padding: 40px 24px;
  background: var(--white);
}
.xbrx-partners img { height: 40px; width: auto; max-width: 100%; object-fit: contain; }

@media (max-width: 700px) {
  .xbrx-partners { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 420px) {
  .xbrx-partners { grid-template-columns: 1fr; }
}



.xbrx-carousel {
  position: relative;
  background: var(--white);
  padding: 48px 60px;
  min-height: 320px;
}
.xbrx-slide { display: none; max-width: 560px; margin: 0 auto; }
.xbrx-slide.active { display: block; }
.xbrx-slide h2 {
  font-family: var(--font-pixel);
  color: var(--black);
  -webkit-text-stroke: 0;
  font-size: 1.6rem;
  margin-bottom: 16px;
}
.xbrx-slide p { color: var(--black-soft); margin-bottom: 12px; }
.xbrx-slide .btn { margin-top: 12px; }

.xbrx-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--black);
  cursor: pointer;
  padding: 8px;
}
.xbrx-arrow.prev { left: 12px; }
.xbrx-arrow.next { right: 12px; }
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 900;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.cart-overlay.open { opacity: 1; pointer-events: auto; }

.cart-drawer {
  position: fixed;
  top: 0; right: 0;
  height: 100%;
  width: 100%;
  max-width: 380px;
  background: var(--black-soft);
  border-left: 1px solid var(--gray-border);
  z-index: 901;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  padding: 24px;
}
.cart-overlay.open .cart-drawer { transform: translateX(0); }

.cart-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--gray-border);
}
.cart-drawer-header h3 { font-size: 1.2rem; }
.cart-drawer-close {
  background: none; border: none; color: var(--gray);
  font-size: 1.5rem; cursor: pointer; line-height: 1;
}
.cart-drawer-close:hover { color: var(--white); }

.cart-drawer-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 16px;
}
.cart-drawer-empty p { color: var(--gray); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  font-weight: 600;
  font-size: 0.95rem;
}

.nav-links a { color: var(--gray); transition: color 0.15s ease; }
.nav-links a:hover, .nav-links a.active { color: var(--teal); }

/* ---------- Footer ---------- */
.footer {
  background: var(--black-soft);
  border-top: 1px solid var(--gray-border);
  margin-top: 100px;
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

.footer h4 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 16px;
}

.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { color: var(--white); font-size: 0.95rem; text-decoration: underline; }
.footer-links a:hover { color: var(--teal); }

.footer-bottom {
  border-top: 1px solid var(--gray-border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--gray);
}

/* ---------- Sections / Cards ---------- */
.section { padding: 80px 0; }
.section-sm { padding: 48px 0; }

.card {
  background: var(--black-soft);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius);
  padding: 32px;
}

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ---------- Forms ---------- */
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 8px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

input[type="text"], input[type="email"], input[type="tel"], input[type="date"],
textarea, select {
  width: 100%;
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid var(--gray-border);
  background: var(--white);
  color: var(--black);
  font-family: var(--font-body);
  font-size: 0.95rem;
}

textarea { min-height: 120px; resize: vertical; }

.checkbox-row { display: flex; align-items: center; gap: 10px; font-size: 0.9rem; color: var(--gray); }
.checkbox-row input { width: auto; }

/* Underlined transparent inputs — used in the black Subscribe blocks */
.form-underline input[type="text"],
.form-underline input[type="email"] {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255,255,255,0.4);
  border-radius: 0;
  color: var(--white);
  padding: 10px 4px;
}
.form-underline label { color: var(--white); font-family: var(--font-body); font-weight: 400; font-size: 0.95rem; }
.form-underline .checkbox-row { color: var(--gray); }

/* ---------- Hero ---------- */
.hero {
  padding: 100px 0 80px;
  text-align: center;
}

.hero .eyebrow {
  display: inline-block;
  color: var(--teal);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.hero-media {
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 520px;
  object-fit: cover;
  display: block;
  background: var(--black);
}

.creator-band {
  background:
    linear-gradient(160deg, rgba(94,23,235,0.45), rgba(30,213,195,0.25)),
    url('../images/creator-band-bg.png');
  background-size: cover;
  background-position: center;
  padding: 100px 24px;
}

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-1 { margin-top: 16px; } .mt-2 { margin-top: 32px; } .mt-3 { margin-top: 48px; }
.mb-1 { margin-bottom: 16px; } .mb-2 { margin-bottom: 32px; } .mb-3 { margin-bottom: 48px; }
.text-teal { color: var(--teal); }
.text-purple { color: var(--purple-light); }

/* ---------- Install Prompt ---------- */
.install-prompt-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.25s ease;
  padding: 16px;
}
.install-prompt-overlay.show { opacity: 1; }

@media (min-width: 640px) {
  .install-prompt-overlay { align-items: center; }
}

.install-prompt-card {
  background: var(--black-soft);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-lg);
  padding: 32px 28px 28px;
  max-width: 380px;
  width: 100%;
  text-align: center;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.25s ease;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.install-prompt-overlay.show .install-prompt-card { transform: translateY(0); }

.install-prompt-close {
  position: absolute;
  top: 12px; right: 16px;
  background: none;
  border: none;
  color: var(--gray);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}
.install-prompt-close:hover { color: var(--white); }

.install-prompt-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 18px;
  background: var(--black);
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.install-prompt-icon img { width: 100%; height: 100%; object-fit: contain; }

.install-prompt-card h3 {
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.install-prompt-card p {
  color: var(--gray);
  font-size: 0.9rem;
  margin-bottom: 24px;
}

.install-prompt-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.install-prompt-actions .btn { width: 100%; padding: 12px 24px; font-size: 0.9rem; }
