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

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg-dark:   #222;
  --bg-dark2:  #1a1a1a;
  --bg-alt:    #2a2a2a;
  --accent:    #e08053;
  --accent-h:  #c8663a;
  --text:      #ccc;
  --heading:   #fff;
  --muted:     #acacac;
  --border:    #5a5a5a;
  --btn-bg:    #fff;
  --btn-text:  #393939;
  --accent-qd:  #FF8C42;
  --accent-qd-h: #e07a32;
  --max-w:     1100px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Plus Jakarta Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg-dark);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
}

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

img { max-width: 100%; height: auto; display: block; }

/* ===== HEADER ===== */
header {
  background: var(--bg-dark);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--heading);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .01em;
}

.logo img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 0;
  align-items: center;
}

nav a {
  display: block;
  padding: 8px 20px;
  color: var(--heading);
  font-size: 0.95rem;
  border-radius: 4px;
  transition: background .15s;
}
nav a:hover, nav a.active {
  background: rgba(255,255,255,.08);
}

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--heading);
  border-radius: 2px;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  background: var(--bg-dark);
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .15;
}

.hero-inner {
  position: relative;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 60px 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-video {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  background: #000;
}
.hero-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.hero-text h1 {
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 12px;
  line-height: 1.2;
}

.hero-text h3 {
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 16px;
  line-height: 1.4;
}

.hero-text p {
  color: var(--text);
  margin-bottom: 10px;
  font-size: 0.95rem;
}

/* ===== STORE BUTTONS ===== */
.store-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.btn-store {
  display: inline-block;
  padding: 10px 24px;
  background: var(--btn-bg);
  color: var(--btn-text);
  font-size: 0.88rem;
  font-weight: 700;
  border: 2px solid var(--btn-bg);
  border-radius: 4px;
  letter-spacing: .03em;
  transition: background .15s, color .15s, border-color .15s;
}
.btn-store:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* ===== SECTION BASE ===== */
.sc-d  { background: var(--bg-dark); }
.sc-cd { background: var(--bg-alt); }

section.content { padding: 60px 0; }

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

h1.section-title, h2.section-title {
  color: var(--heading);
  font-weight: 700;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  line-height: 1.2;
  margin-bottom: 12px;
}

p.section-sub {
  color: var(--text);
  margin-bottom: 8px;
}

/* ===== FEATURES ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  padding: 40px 24px;
  max-width: var(--max-w);
  margin: 0 auto;
}

.feature-item {
  padding: 32px 24px;
  text-align: center;
}

.feature-item img.feat-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.feature-item h3 {
  color: var(--heading);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.feature-item p {
  color: var(--text);
  font-size: 0.9rem;
}

/* ===== SPLIT ROWS ===== */
.row {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 60px 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.row .row-img {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
}
.row .row-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.row-text h1 {
  color: var(--heading);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  margin-bottom: 14px;
  line-height: 1.2;
}

.row-text .sub {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 8px;
}

.row-text a.link {
  color: var(--accent);
}
.row-text a.link:hover {
  text-decoration: underline;
}

/* ===== DOG GALLERY ===== */
.dogs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  width: 100%;
}

.dogs-grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  background: var(--bg-dark2);
}

/* ===== CTA SECTION ===== */
.cta-section {
  position: relative;
  padding: 80px 24px;
  text-align: center;
  overflow: hidden;
}

.cta-section .cta-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  filter: brightness(.35);
}

.cta-section .cta-content {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
}

.cta-section h1 {
  color: var(--heading);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  margin-bottom: 12px;
}

.cta-section p {
  color: var(--text);
  margin-bottom: 0;
}

/* ===== FOOTER ===== */
footer {
  background: var(--bg-dark);
  border-top: 1px solid var(--border);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  font-size: 0.85rem;
  color: var(--muted);
  flex-wrap: wrap;
}

footer a { color: var(--muted); }
footer a:hover { color: var(--heading); }

/* ===== INNER PAGES ===== */
.page-header {
  background: var(--bg-dark);
  border-bottom: 1px solid var(--border);
  padding: 48px 24px;
}

.page-header h1 {
  color: var(--heading);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  max-width: var(--max-w);
  margin: 0 auto;
}

.page-content {
  max-width: 780px;
  margin: 0 auto;
  padding: 52px 24px;
  color: var(--text);
}

.page-content h2 {
  color: var(--heading);
  font-size: 1.2rem;
  font-weight: 700;
  margin: 36px 0 10px;
}

.page-content p { margin-bottom: 14px; line-height: 1.8; }
.page-content ul { padding-left: 20px; margin-bottom: 14px; }
.page-content li { margin-bottom: 6px; }
.page-content a { color: var(--accent); }
.page-content a:hover { text-decoration: underline; }

/* ===== PRIVACY POLICY BRANDED HEADER ===== */
.pp-brand {
  display: flex;
  align-items: center;
  gap: 20px;
  max-width: var(--max-w);
  margin: 0 auto;
}

.pp-brand__icon {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
}

.pp-brand__label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 6px;
  color: var(--accent);
}

.pp-brand__title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--heading);
  margin: 0;
}

@media (max-width: 480px) {
  .pp-brand { gap: 14px; }
  .pp-brand__icon { width: 52px; height: 52px; border-radius: 12px; }
}

.contact-info {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 32px;
  margin-top: 8px;
}

.contact-info h2 { margin-top: 0; }

.contact-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  color: var(--text);
}

.contact-row a { color: var(--accent); }
.contact-row a:hover { text-decoration: underline; }

.social-row {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--btn-bg);
  color: var(--btn-text);
  border: 2px solid var(--btn-bg);
  border-radius: 4px;
  padding: 9px 20px;
  font-size: 0.9rem;
  font-weight: 700;
  transition: background .15s, border-color .15s, color .15s;
}
.social-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.social-btn svg { width: 18px; height: 18px; flex-shrink: 0; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr; gap: 32px; padding: 40px 16px; }
  .features-grid { grid-template-columns: 1fr; padding: 24px 16px; }
  .row { grid-template-columns: 1fr; padding: 40px 16px; gap: 24px; }
  .row.reverse .row-img { order: -1; }
  nav ul { display: none; flex-direction: column; gap: 0; }
  nav ul.open {
    display: flex;
    position: absolute;
    top: 64px; left: 0; right: 0;
    background: var(--bg-dark2);
    border-bottom: 1px solid var(--border);
    padding: 8px 0;
  }
  nav ul.open li a { padding: 12px 24px; }
  .hamburger { display: flex; }
  .dogs-grid { grid-template-columns: repeat(3, 1fr); }
  footer { flex-direction: column; gap: 8px; text-align: center; }
}

@media (max-width: 480px) {
  .store-buttons { flex-direction: column; }
  .btn-store { text-align: center; }
  .dogs-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ===== QD BUTTON ===== */
.btn-qd {
  display: inline-block;
  padding: 10px 24px;
  background: var(--accent-qd);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 700;
  border: 2px solid var(--accent-qd);
  border-radius: 4px;
  letter-spacing: .03em;
  transition: background .15s, border-color .15s;
}
.btn-qd:hover {
  background: var(--accent-qd-h);
  border-color: var(--accent-qd-h);
}

/* ===== BADGE ===== */
.badge {
  display: inline-block;
  background: var(--bg-dark2);
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 3px 8px;
  font-size: 0.75rem;
}
.badge--alpha {
  background: var(--accent-qd);
  color: #fff;
  border-color: var(--accent-qd);
}
.badge--link {
  transition: background .15s, color .15s, border-color .15s;
  cursor: pointer;
}
.badge--link:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* ===== PRODUCT CARDS (homepage) ===== */
.product-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-width: var(--max-w);
  margin: 48px auto;
  padding: 0 24px;
}

.product-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.product-card__accent { height: 6px; }

.product-card__body { padding: 28px 24px; }

.product-card__header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.product-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: contain;
  background: var(--bg-dark2);
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.product-card__title {
  color: var(--heading);
  font-weight: 700;
  font-size: 1.05rem;
}

.product-card__platform {
  color: var(--muted);
  font-size: 0.78rem;
  margin-top: 2px;
}

.product-card__desc {
  color: var(--text);
  font-size: 0.88rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

.product-card__badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

/* ===== HOME HERO ===== */
.home-hero {
  padding: 60px 24px 48px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.home-hero__label {
  color: var(--accent);
  font-size: 0.8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.home-hero__title {
  color: var(--heading);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 12px;
}

.home-hero__sub {
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 480px;
  margin: 0 auto;
}

/* ===== QUESTDECK PAGE ===== */
.qd-hero { border-bottom: 1px solid var(--border); }

.qd-hero__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 60px 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.qd-hero__icon-wrap {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qd-hero__icon {
  width: 120px;
  height: 120px;
  border-radius: 24px;
  object-fit: contain;
}

.qd-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 48px 24px;
}

.qd-step {
  background: var(--bg-alt);
  border-radius: 6px;
  padding: 20px;
  border-left: 3px solid var(--accent-qd);
}

.qd-step__label {
  color: var(--accent-qd);
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 8px;
}

.qd-step__text {
  color: var(--text);
  font-size: 0.85rem;
  line-height: 1.5;
}

.qd-features {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 48px 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.qd-feature {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  color: var(--text);
  font-size: 0.88rem;
}

.qd-feature__check {
  color: var(--accent-qd);
  flex-shrink: 0;
  font-weight: 700;
}

.qd-cta {
  text-align: center;
  padding: 60px 24px;
  background: var(--bg-alt);
}

.qd-cta__label {
  color: var(--accent-qd);
  font-size: 0.78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.qd-cta__title {
  color: var(--heading);
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  font-weight: 700;
  margin-bottom: 12px;
}

.qd-cta__text {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 24px;
}

/* ===== HIGHLIGHT BOX (QD privacy policy) ===== */
.highlight-box {
  background: var(--bg-alt);
  border-left: 4px solid var(--accent-qd);
  border-radius: 4px;
  padding: 16px 20px;
  margin-bottom: 28px;
}

.highlight-box__title {
  color: var(--heading);
  font-weight: 700;
  margin-bottom: 4px;
}

.highlight-box__sub {
  color: var(--muted);
  font-size: 0.85rem;
}

/* QuestDeck page-content link color override */
.page-content--qd a { color: var(--accent-qd); }
.page-content--qd a:hover { text-decoration: underline; }

/* ===== RESPONSIVE ADDITIONS ===== */
@media (max-width: 768px) {
  .product-cards { grid-template-columns: 1fr; }
  .qd-hero__inner { grid-template-columns: 1fr; gap: 32px; padding: 40px 16px; }
  .qd-steps { grid-template-columns: 1fr; padding: 32px 16px; }
  .qd-features { grid-template-columns: 1fr; padding: 32px 16px; }
}

/* ===== HOME HERO V2 ===== */
.home-hero-v2 {
  position: relative;
  overflow: hidden;
  background: var(--bg-dark2);
  padding: 96px 24px 80px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.home-hero-v2__glow {
  position: absolute;
  bottom: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  max-width: 1000px;
  height: 800px;
  background: radial-gradient(ellipse at center bottom, rgba(224,128,83,0.18) 0%, transparent 68%);
  pointer-events: none;
}

.home-hero-v2__inner {
  position: relative;
  z-index: 2;
  max-width: 660px;
  margin: 0 auto;
}

.home-hero-v2__eyebrow {
  display: inline-block;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  margin-bottom: 22px;
  padding: 4px 14px;
  border: 1px solid rgba(224,128,83,0.35);
  border-radius: 100px;
}

.home-hero-v2__title {
  color: var(--heading);
  font-size: clamp(2.1rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -.025em;
  margin-bottom: 22px;
}

.home-hero-v2__title em {
  font-style: normal;
  color: var(--accent);
}

.home-hero-v2__sub {
  color: var(--text);
  font-size: 1.05rem;
  line-height: 1.75;
  max-width: 520px;
  margin: 0 auto 38px;
}

.home-hero-v2__ctas {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.h-cta {
  display: inline-block;
  padding: 13px 28px;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: .01em;
  transition: transform .18s, box-shadow .18s, background .15s;
}

.h-cta:hover { transform: translateY(-2px); }

.h-cta--game {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 22px rgba(224,128,83,0.38);
}
.h-cta--game:hover {
  background: var(--accent-h);
  box-shadow: 0 8px 32px rgba(224,128,83,0.52);
}

.h-cta--deck {
  background: rgba(255,255,255,0.07);
  color: var(--heading);
  border: 1px solid rgba(255,255,255,0.16);
}
.h-cta--deck:hover { background: rgba(255,255,255,0.13); }

/* floating orbs */
.home-hero-v2__float {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.flt {
  position: absolute;
  border-radius: 50%;
  background: var(--accent);
}

.flt--a {
  width: 220px; height: 220px;
  top: -80px; right: 6%;
  opacity: .07;
  animation: flt-bob 8s ease-in-out infinite;
}

.flt--b {
  width: 110px; height: 110px;
  bottom: 10%; left: 5%;
  opacity: .09;
  animation: flt-bob 10s ease-in-out infinite 2.5s;
}

.flt--c {
  width: 55px; height: 55px;
  top: 25%; right: 12%;
  opacity: .12;
  animation: flt-bob 6s ease-in-out infinite 1s;
}

@keyframes flt-bob {
  0%, 100% { transform: translateY(0) scale(1); }
  50%       { transform: translateY(-18px) scale(1.06); }
}

/* ===== HOME PRODUCTS SECTION ===== */
.home-products { padding: 72px 0 80px; }

.home-sec-label {
  text-align: center;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.home-sec-title {
  color: var(--heading);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -.02em;
  text-align: center;
  margin-bottom: 8px;
}

.home-sec-sub {
  color: var(--muted);
  font-size: 0.95rem;
  text-align: center;
  margin-bottom: 48px;
}

.home-product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== HOME PRODUCT CARD ===== */
.hpcard {
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  transition: transform .22s, box-shadow .22s;
}

.hpcard:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.45);
}

.hpcard__shot {
  width: 100%;
  height: 210px;
  overflow: hidden;
  background: var(--bg-dark2);
  position: relative;
}

.hpcard__shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform .4s ease;
}

.hpcard:hover .hpcard__shot img { transform: scale(1.05); }

.hpcard__shot-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 50%, var(--bg-dark) 100%);
}

.hpcard__body { padding: 26px 24px 28px; }

.hpcard__header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.hpcard__icon {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  object-fit: contain;
  background: var(--bg-dark2);
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.hpcard__title {
  color: var(--heading);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -.01em;
}

.hpcard__platform {
  color: var(--muted);
  font-size: 0.78rem;
  margin-top: 3px;
}

.hpcard__desc {
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1.75;
  margin-bottom: 20px;
}

.hpcard__stores {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.hpcard__cta {
  display: inline-block;
  padding: 11px 22px;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: .01em;
  transition: transform .15s, box-shadow .15s, background .15s;
}

.hpcard__cta:hover { transform: translateY(-1px); }

.hpcard__cta--ag {
  background: var(--accent);
  color: #fff;
}
.hpcard__cta--ag:hover {
  background: var(--accent-h);
  box-shadow: 0 4px 18px rgba(224,128,83,0.42);
}

.hpcard__cta--qd {
  background: var(--accent-qd);
  color: #fff;
}
.hpcard__cta--qd:hover {
  background: var(--accent-qd-h);
  box-shadow: 0 4px 18px rgba(255,140,66,0.42);
}

/* ===== STUDIO BLURB ===== */
.home-studio {
  border-top: 1px solid var(--border);
  padding: 64px 24px;
}

.home-studio__inner {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  gap: 28px;
  align-items: flex-start;
}

.home-studio__logo {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  opacity: 0.85;
  flex-shrink: 0;
}

.home-studio__title {
  color: var(--heading);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -.01em;
  margin-bottom: 10px;
}

.home-studio__text {
  color: var(--text);
  font-size: 0.92rem;
  line-height: 1.8;
  margin-bottom: 16px;
}

.home-studio__link {
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 700;
  transition: opacity .15s;
}
.home-studio__link:hover { opacity: 0.75; text-decoration: underline; }

/* ===== HOME RESPONSIVE ===== */
@media (max-width: 768px) {
  .home-hero-v2 { padding: 68px 16px 60px; }
  .flt--a { display: none; }
  .flt--b { display: none; }
  .home-product-grid { grid-template-columns: 1fr; padding: 0 16px; }
  .home-products { padding: 52px 0 60px; }
  .home-studio__inner { flex-direction: column; gap: 16px; }
  .home-studio { padding: 48px 16px; }
}

@media (max-width: 480px) {
  .home-hero-v2__ctas { flex-direction: column; align-items: stretch; }
  .h-cta { text-align: center; }
  .hpcard__shot { height: 170px; }
}

/* ===================================================
   HOME — COLORFUL LIGHT THEME (body.home)
   Palette drawn from the Bookdragon watercolor logo:
   teal/green (dragon body), red-orange (left wing),
   warm gold (AgilityGame tunnel).
   =================================================== */
body.home {
  --bg-dark:   #fdf8f3;   /* warm cream */
  --bg-dark2:  #f5ede3;   /* warm linen */
  --bg-alt:    #ede4d8;   /* warm sand */
  --accent:    #d9461a;   /* richer red-orange — dragon wing */
  --accent-h:  #b83614;
  --text:      #3d2010;   /* warm dark brown */
  --heading:   #1a0c04;   /* near-black warm */
  --muted:     #9a7060;
  --border:    #e8d5c5;
  --btn-bg:    #1a0c04;
  --btn-text:  #fff;
  /* teal secondary — dragon body */
  --teal:      #2a9d8f;
  --teal-h:    #1e8070;
}

/* ---- nav on light bg ---- */
body.home nav a:hover,
body.home nav a.active {
  background: rgba(0,0,0,0.07);
}

/* ---- hero ---- */
body.home .home-hero-v2 {
  background: var(--bg-dark);
}
body.home .home-hero-v2__glow { display: none; }

body.home .home-hero-v2__eyebrow {
  color: var(--accent);
  border-color: rgba(217,70,26,0.28);
}

body.home .home-hero-v2__title { color: var(--heading); }
body.home .home-hero-v2__title em { color: var(--accent); }
body.home .home-hero-v2__sub { color: var(--text); }

/* colorful gradient blobs */
.home-blob {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

body.home .home-blob--teal {
  width: 560px; height: 560px;
  top: -160px; left: -120px;
  background: radial-gradient(circle, rgba(42,157,143,0.48) 0%, transparent 66%);
  filter: blur(80px);
}

body.home .home-blob--red {
  width: 500px; height: 500px;
  top: -120px; right: -100px;
  background: radial-gradient(circle, rgba(217,70,26,0.42) 0%, transparent 66%);
  filter: blur(70px);
}

body.home .home-blob--gold {
  width: 420px; height: 420px;
  bottom: -100px; left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(245,184,48,0.40) 0%, transparent 66%);
  filter: blur(70px);
}

/* ---- hero CTAs ---- */
body.home .h-cta--game {
  background: var(--accent);
  box-shadow: 0 4px 22px rgba(217,70,26,0.36);
}
body.home .h-cta--game:hover {
  background: var(--accent-h);
  box-shadow: 0 8px 32px rgba(217,70,26,0.52);
}

body.home .h-cta--deck {
  background: rgba(42,157,143,0.12);
  color: var(--teal);
  border: 1.5px solid rgba(42,157,143,0.36);
}
body.home .h-cta--deck:hover {
  background: rgba(42,157,143,0.22);
  color: var(--teal-h);
}

/* ---- product cards ---- */
body.home .hpcard {
  background: #fff;
  border-color: var(--border);
  box-shadow: 0 2px 16px rgba(60,20,5,0.07);
}
body.home .hpcard:hover {
  box-shadow: 0 16px 48px rgba(60,20,5,0.16);
}

body.home .hpcard__icon {
  background: var(--bg-dark2);
  border-color: var(--border);
}
body.home .hpcard__title  { color: var(--heading); }
body.home .hpcard__platform { color: var(--muted); }
body.home .hpcard__desc   { color: var(--text); }

body.home .badge {
  background: var(--bg-alt);
  color: var(--muted);
  border-color: var(--border);
}

body.home .hpcard__cta--ag { background: var(--accent); }
body.home .hpcard__cta--ag:hover {
  background: var(--accent-h);
  box-shadow: 0 4px 18px rgba(217,70,26,0.40);
}

/* QuestDeck card accent keeps its warm orange */
body.home .hpcard__cta--qd { background: var(--accent-qd); }
body.home .hpcard__cta--qd:hover {
  background: var(--accent-qd-h);
  box-shadow: 0 4px 18px rgba(255,140,66,0.40);
}

/* section headings */
body.home .home-sec-label { color: var(--accent); }
body.home .home-sec-title  { color: var(--heading); }
body.home .home-sec-sub    { color: var(--muted); }

/* ---- studio note ---- */
body.home .home-studio__title { color: var(--heading); }
body.home .home-studio__text  { color: var(--text); }
body.home .home-studio__link  { color: var(--accent); }

/* ---- footer ---- */
body.home footer {
  background: var(--bg-dark2);
  border-top-color: var(--border);
}
body.home footer a:hover { color: var(--heading); }

/* ---- responsive blobs ---- */
@media (max-width: 768px) {
  body.home .home-blob--teal { width: 300px; height: 300px; top: -100px; left: -80px; }
  body.home .home-blob--red  { width: 260px; height: 260px; top: -80px; right: -60px; }
  body.home .home-blob--gold { display: none; }
}

/* ==========================================
   GLOBAL FIXES — missing heading styles
   ========================================== */
.hero-text h2 {
  font-size: clamp(0.95rem, 1.4vw, 1.05rem);
  font-weight: 400;
  color: var(--text);
  margin-bottom: 16px;
  line-height: 1.6;
}

.row-text h2 {
  color: var(--heading);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  margin-bottom: 14px;
  line-height: 1.2;
}

.cta-section h2 {
  color: var(--heading);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  margin-bottom: 12px;
}

/* ==========================================
   AGILITY GAME PAGE  (body.ag-page)
   Theme: Dark Warm · Sports Energy · Golden Amber
   Inspired by: golden tunnel, outdoor grass,
   warm dark of a summer agility competition
   ========================================== */

body.ag-page {
  --bg-dark:   #0d0a05;
  --bg-dark2:  #090704;
  --bg-alt:    #161008;
  --accent:    #f5b830;
  --accent-h:  #d9a020;
  --text:      #c8b898;
  --heading:   #f5ead8;
  --muted:     #7a6a50;
  --border:    #2c2010;
  --btn-bg:    #f5b830;
  --btn-text:  #0d0a05;
}

body.ag-page nav a:hover,
body.ag-page nav a.active {
  background: rgba(245,184,48,0.10);
  color: var(--accent);
}

/* hero */
body.ag-page .hero-text h1 {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -.025em;
  color: var(--heading);
}

body.ag-page .hero-text h2 {
  color: var(--accent);
  font-weight: 600;
  font-size: clamp(0.9rem, 1.4vw, 1.05rem);
  letter-spacing: .01em;
}

body.ag-page .hero-text p { color: var(--text); }

body.ag-page .hero-video {
  border-radius: 10px;
  box-shadow: 0 0 0 1px rgba(245,184,48,0.20),
              0 16px 60px rgba(0,0,0,0.6);
  overflow: hidden;
}

/* golden store buttons */
body.ag-page .btn-store {
  background: var(--accent);
  color: var(--bg-dark);
  border-color: var(--accent);
  font-weight: 700;
  letter-spacing: .04em;
}
body.ag-page .btn-store:hover {
  background: var(--accent-h);
  border-color: var(--accent-h);
  color: var(--bg-dark);
}

/* features section header */
.ag-sec-header {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 56px 24px 0;
  text-align: center;
}
.ag-sec-label {
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.ag-sec-title {
  color: var(--heading);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -.02em;
}

body.ag-page .ag-features .features-grid { padding-top: 16px; }

/* golden icons */
body.ag-page .feat-icon {
  filter: brightness(0) invert(1) sepia(1) saturate(2) hue-rotate(5deg);
}
body.ag-page .feature-item h3 { color: var(--accent); }
body.ag-page .feature-item p  { color: var(--text); }

/* dogs — character selection glow on hover */
body.ag-page .dogs-grid img {
  background: var(--bg-dark2);
  border-radius: 6px;
  transition: transform .22s ease, filter .22s ease;
}
body.ag-page .dogs-grid img:hover {
  transform: scale(1.07) translateY(-4px);
  filter: drop-shadow(0 6px 24px rgba(245,184,48,0.52));
}

/* section titles golden */
body.ag-page .row-text h2 {
  color: var(--accent);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -.03em;
}
body.ag-page .row-text .sub  { color: var(--text); }
body.ag-page .row-text a.link { color: var(--accent); }
body.ag-page .row-img img { border-radius: 6px; }

/* CTA */
body.ag-page .cta-section h2 {
  color: var(--accent);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -.025em;
  text-shadow: 0 0 40px rgba(245,184,48,0.4);
}
body.ag-page .cta-section p { color: var(--heading); font-size: 1.05rem; }

/* store buttons inside CTA (on photo bg) */
.cta-store-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 28px;
}

body.ag-page footer { background: var(--bg-dark2); border-top-color: var(--border); }
body.ag-page footer a:hover { color: var(--accent); }

/* ag-page privacy policy */
body.ag-page .page-header { background: var(--bg-dark); border-bottom-color: rgba(245,184,48,0.18); }
body.ag-page .page-content { color: var(--text); }
body.ag-page .page-content h2 { color: var(--accent); }
body.ag-page .page-content a { color: var(--accent); }

/* --- sc-cd = dark forest green — clear visual rhythm vs near-black sc-d --- */
body.ag-page .sc-cd { background: #0c1a08; }

/* --- Hero: reveal the green nature photo, vignette keeps text readable --- */
body.ag-page .hero-bg {
  opacity: 0.42;
  object-position: center 15%;
}
body.ag-page .hero {
  background:
    radial-gradient(ellipse at 65% 50%, rgba(8,6,2,0.82) 25%, rgba(8,6,2,0.28) 100%),
    var(--bg-dark);
}

/* --- Amber racing stripe before each section title --- */
body.ag-page .row-text h2::before {
  content: '';
  display: block;
  width: 44px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  margin-bottom: 14px;
}

/* --- Feature items: amber top-stripe accent --- */
body.ag-page .feature-item {
  border-top: 2px solid rgba(245,184,48,0.14);
  transition: border-color .25s;
}
body.ag-page .feature-item:hover { border-top-color: rgba(245,184,48,0.65); }

/* --- First store button ambient glow pulse --- */
@keyframes ag-glow {
  0%,100% { box-shadow: 0 4px 18px rgba(245,184,48,0.28); }
  50%      { box-shadow: 0 4px 36px rgba(245,184,48,0.62), 0 0 0 3px rgba(245,184,48,0.12); }
}
body.ag-page .store-buttons .btn-store:first-child,
body.ag-page .cta-store-buttons .btn-store:first-child {
  animation: ag-glow 2.8s ease-in-out infinite;
}

@media (max-width: 768px) {
  .ag-sec-header { padding: 40px 16px 0; }
  body.ag-page .row-text h2::before { display: none; }
}

/* ==========================================
   QUESTDECK PAGE  (body.qd-page)
   Theme: Light Warm · Card Game · Cozy
   Inspired by: warm orange featured graphic,
   real activity cards, offline adventure
   ========================================== */

body.qd-page {
  --bg-dark:   #fdf8f3;
  --bg-dark2:  #f5ede3;
  --bg-alt:    #ede4d8;
  --accent:    #ff8c42;
  --accent-h:  #e07230;
  --text:      #3d2010;
  --heading:   #1a0c04;
  --muted:     #9a7060;
  --border:    #e8d5c5;
  --btn-bg:    #ff8c42;
  --btn-text:  #fff;
}

body.qd-page nav a:hover,
body.qd-page nav a.active { background: rgba(0,0,0,0.07); }

/* ---- QD Hero ---- */
.qd-hero-v2 {
  background: var(--bg-dark);
  border-bottom: 1px solid var(--border);
}

.qd-hero-v2__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 64px 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 52px;
  align-items: center;
}

.qd-hero-v2__label {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 20px;
}

.qd-hero-v2__title {
  color: var(--heading);
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.03em;
  margin-bottom: 20px;
}

.qd-hero-v2__title em {
  font-style: normal;
  color: var(--accent);
}

.qd-hero-v2__sub {
  color: var(--text);
  font-size: 1rem;
  line-height: 1.78;
  margin-bottom: 32px;
  max-width: 440px;
}

.qd-hero-v2__cta {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 14px 30px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 4px 20px rgba(255,140,66,0.38);
  transition: background .15s, transform .18s, box-shadow .18s;
}
.qd-hero-v2__cta:hover {
  background: var(--accent-h);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(255,140,66,0.52);
}

.qd-hero-v2__note {
  display: block;
  margin-top: 14px;
  font-size: 0.82rem;
  color: var(--muted);
}
.qd-hero-v2__note a { color: var(--accent); font-weight: 600; }
.qd-hero-v2__note a:hover { text-decoration: underline; }

.qd-featured-img {
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(60,20,0,0.20);
}
.qd-featured-img img { width: 100%; height: auto; display: block; }

/* ---- QD Section Header ---- */
.qd-section-header {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 64px 24px 0;
}
.qd-section-header__label {
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.qd-section-header__title {
  color: var(--heading);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -.02em;
}

/* ---- QD Steps as physical cards ---- */
.qd-steps-v2 {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 28px 24px 64px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.qd-step-v2 {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 30px 24px;
  box-shadow: 0 2px 16px rgba(60,20,0,0.06);
  transition: transform .22s, box-shadow .22s;
}
.qd-step-v2:hover {
  transform: translateY(-5px) rotate(-0.5deg);
  box-shadow: 0 14px 40px rgba(60,20,0,0.14);
}

.qd-step-v2__num {
  width: 38px; height: 38px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.qd-step-v2__title {
  color: var(--heading);
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.qd-step-v2__text {
  color: var(--text);
  font-size: 0.88rem;
  line-height: 1.7;
}

/* ---- QD Features ---- */
.qd-features-v2 {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 28px 24px 64px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.qd-feat-v2 {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 18px;
  font-size: 0.88rem;
  color: var(--text);
  transition: border-color .15s;
}
.qd-feat-v2:hover { border-color: var(--accent); }

.qd-feat-v2__icon {
  width: 20px; height: 20px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  font-weight: 900;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ---- QD CTA ---- */
.qd-cta-v2 {
  background: var(--accent);
  padding: 80px 24px;
  text-align: center;
}

.qd-cta-v2__title {
  color: #fff;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -.025em;
  margin-bottom: 12px;
}

.qd-cta-v2__text {
  color: rgba(255,255,255,0.88);
  font-size: 0.95rem;
  margin-bottom: 28px;
}

.qd-cta-v2__btn {
  display: inline-block;
  background: #fff;
  color: var(--accent);
  padding: 13px 30px;
  border-radius: 6px;
  font-weight: 800;
  font-size: 0.95rem;
  transition: transform .18s, box-shadow .18s;
}
.qd-cta-v2__btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.22);
}

body.qd-page footer { background: var(--bg-dark2); border-top-color: var(--border); }
body.qd-page footer a:hover { color: var(--heading); }

/* qd-page privacy policy */
body.qd-page .page-header { background: var(--bg-dark); border-bottom-color: var(--border); }
body.qd-page .page-content { color: var(--text); }
body.qd-page .page-content h2 { color: var(--heading); }
body.qd-page .page-content a { color: var(--accent); }
body.qd-page .highlight-box { background: var(--bg-alt); border-left-color: var(--accent); }

/* ==========================================
   CONTACT PAGE  (body.contact-page)
   Theme: Light Warm · Simple & Welcoming
   ========================================== */

body.contact-page {
  --bg-dark:   #fdf8f3;
  --bg-dark2:  #f5ede3;
  --bg-alt:    #ede4d8;
  --accent:    #d9461a;
  --accent-h:  #b83614;
  --text:      #3d2010;
  --heading:   #1a0c04;
  --muted:     #9a7060;
  --border:    #e8d5c5;
  --btn-bg:    #d9461a;
  --btn-text:  #fff;
}

body.contact-page nav a:hover,
body.contact-page nav a.active { background: rgba(0,0,0,0.07); }

body.contact-page .page-header {
  background: var(--bg-dark2);
  border-bottom-color: var(--border);
}
body.contact-page .page-header h1 { color: var(--heading); }

body.contact-page .contact-info {
  background: #fff;
  border-color: var(--border);
  box-shadow: 0 2px 20px rgba(60,20,0,0.07);
}
body.contact-page .contact-info h2 { color: var(--heading); }
body.contact-page .contact-row     { color: var(--text); }
body.contact-page .contact-row a   { color: var(--accent); }
body.contact-page .contact-row svg { stroke: var(--accent); }

body.contact-page .social-btn {
  background: var(--btn-bg);
  color: var(--btn-text);
  border-color: var(--btn-bg);
}
body.contact-page .social-btn:hover {
  background: var(--accent-h);
  border-color: var(--accent-h);
}
body.contact-page .social-btn svg { stroke: none; }

body.contact-page footer { background: var(--bg-dark2); border-top-color: var(--border); }
body.contact-page footer a:hover { color: var(--heading); }

/* ==========================================
   RESPONSIVE — new page components
   ========================================== */
@media (max-width: 768px) {
  .qd-hero-v2__inner  { grid-template-columns: 1fr; gap: 32px; padding: 40px 16px; }
  .qd-steps-v2        { grid-template-columns: 1fr; padding: 24px 16px 48px; }
  .qd-features-v2     { grid-template-columns: 1fr; padding: 24px 16px 48px; }
  .qd-section-header  { padding: 48px 16px 0; }
  .qd-featured-img    { max-width: 480px; }
  .cta-store-buttons  { flex-direction: column; align-items: center; }
}

@media (max-width: 480px) {
  .qd-cta-v2 { padding: 56px 16px; }
  .qd-cta-v2__btn { display: block; text-align: center; }
  .qd-hero-v2__sub { max-width: 100%; }
}
