html {
  margin: 0;
}

html:has(body.page-home) {
  background: #140805;
}

html:has(body.page-legal) {
  background: #fbf7f0;
}

html:has(body.page-index-2) {
  height: 100%;
}

/* ==========================================================================
   Home pages
   ========================================================================== */

body.page-home {
  --gold: #f0d5a0;
  --gold-deep: #ffc000;
  --cream: #f0d5a0;
  --night: #140805;
  margin: 0;
  background: var(--night);
  color: var(--cream);
  font-family: "Italiana", serif;
}

body.page-index-2,
body.page-index-3 {
  font-family: "Italiana", sans-serif;
}

body.page-home .hero {
  position: relative;
  width: 100%;
}

body.page-home .hero-video {
  opacity: 0;
  background: none;
  transition: opacity 0.35s linear;
  z-index: 0;
}

body.page-home .hero-video.is-active {
  opacity: 1;
  z-index: 1;
}

body.page-home .hero-video.is-incoming {
  opacity: 1;
  z-index: 2;
}

body.page-home .headline-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.4rem;
  flex-wrap: wrap;
}

body.page-home .hero-title {
  margin: 0;
  font-size: clamp(2.8rem, 4.4vw, 3.55rem);
  line-height: 1.12;
  letter-spacing: 0.01em;
  background: linear-gradient(90deg, #f0d5a0 0%, #ffc000 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.35));
}

body.page-index .hero-title {
  font-weight: 700;
}

body.page-index-2 .hero-title,
body.page-index-3 .hero-title {
  font-weight: 600;
}

body.page-home .hero-tagline {
  margin: 0;
  font-weight: 400;
  font-size: clamp(1.55rem, 2.2vw, 1.85rem);
  color: var(--cream);
  letter-spacing: 0.02em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}

body.page-home .store-badge {
  display: block;
  line-height: 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

body.page-home .store-badge img {
  display: block;
  height: auto;
}

body.page-home .store-badge:hover {
  transform: translateY(-2px);
}



body.page-home .store-col {
  display: flex;
  flex-direction: column;
  align-items: center;
}

body.page-home .coming-soon {
  margin-top: 0.45rem;
  font-size: 0.82rem;
  color: rgba(239, 227, 200, 0.72);
  letter-spacing: 0.02em;
}

body.page-home .store-row {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 1.15rem;
  flex-direction: row;
}

body.page-home .apps-section,
body.page-home .app-buttons {
  background: #2e0d04;
  padding: 2.5rem 1.25rem 3rem;
  text-align: center;
}

body.page-home .site-footer {
  margin-top: 2rem;
  font-size: 0.95rem;
  text-align: center;
}

body.page-home .site-footer a {
  color: var(--cream);
  text-decoration: none;
  margin: 0 0.7rem;
  opacity: 0.8;
  letter-spacing: 1px;
}

body.page-home .site-footer a:hover {
  color: var(--gold-deep);
  opacity: 1;
}

/* --- index.html --- */

body.page-index {
  height: auto;
}

body.page-index .hero-poster {
  display: none;
}

body.page-index .hero-video {
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center top;
}

body.page-index .hero-video.is-active {
  position: relative;
}

body.page-index .hero-video:not(.is-active) {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: auto;
  object-fit: contain;
}

body.page-index .hero-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: min(100vh, 100%);
  height: min(100dvh, 100%);
  z-index: 3;
  background: linear-gradient(
    to top,
    #2e0d04 0%,
    rgba(46, 13, 4, 0.7) 12%,
    rgba(46, 13, 4, 0.35) 28%,
    rgba(46, 13, 4, 0.1) 42%,
    transparent 55%
  );
  pointer-events: none;
}

body.page-index .hero-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: min(100vh, 100%);
  height: min(100dvh, 100%);
  z-index: 4;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  padding: 0 1.25rem 2rem;
  text-align: center;
  pointer-events: none;
}

body.page-index .headline-row {
  margin-bottom: 0;
}

body.page-index .store-row,
body.page-index-3 .store-row {
  max-width: 400px;
  margin: auto;
  width: 100%;
  padding: 10px 0;
}

body.page-index .store-badge,
body.page-index .store-col,
body.page-index-3 .store-badge,
body.page-index-3 .store-col {
  width: 100%;
}

body.page-index .store-badge img,
body.page-index-3 .store-badge img {
  width: 100%;
}

/* --- index-2.html --- */

body.page-index-2 {
  height: 100%;
}

body.page-index-2 .hero {
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
}

body.page-index-2 .hero-video,
body.page-index-2 .hero-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

body.page-index-2 .hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: linear-gradient(
    to top,
    #2e0d04 0%,
    rgba(46, 13, 4, 0.82) 14%,
    rgba(46, 13, 4, 0.45) 32%,
    rgba(46, 13, 4, 0.15) 48%,
    transparent 66%
  );
  pointer-events: none;
}

body.page-index-2 .hero-content {
  position: relative;
  z-index: 4;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: stretch;
  padding: 0 3vw 4.2%;
  text-align: center;
}

body.page-index-2 .hero-bar {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 88px;
}

body.page-index-2 .headline-row {
  margin-bottom: 0;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 2.2rem;
  text-align: center;
}

body.page-index-2 .hero-title {
  text-align: center;
}

body.page-index-2 .hero-tagline {
  white-space: nowrap;
}

body.page-index-2 .store-row {
  position: absolute;
  left: 3vw;
  bottom: 9%;
  margin: 0;
  width: auto;
  justify-content: flex-start;
  flex-wrap: nowrap;
  z-index: 5;
  width: 19%;
  max-width: 480px;
}
body.page-index-2 .store-row .store-badge,
body.page-index-2 .store-row .store-col{
  width: 100%;
}
body.page-index-2 .store-badge img {
  width:100%;
}

/* --- index-3.html --- */

body.page-index-3 .hero {
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

body.page-index-3 .hero-video,
body.page-index-3 .hero-poster {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

body.page-index-3 .hero-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: min(100vh, 100%);
  height: min(100dvh, 100%);
  z-index: 3;
  background: linear-gradient(
    to top,
    #2e0d04 0%,
    rgba(46, 13, 4, 0.7) 16%,
    rgba(46, 13, 4, 0.35) 36%,
    rgba(46, 13, 4, 0.1) 52%,
    transparent 68%
  );
  pointer-events: none;
}

body.page-index-3 .hero-content {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  padding: 0 1.25rem 2rem;
  text-align: center;
  pointer-events: none;
}

body.page-index-3 .app-buttons {
  position: relative;
  z-index: 1;
  width: 100%;
}

/* Show only the matching video pair — must stay last among home video display rules */
body.page-home video.hero-video.hero-video-desktop {
  display: none;
}

body.page-home video.hero-video.hero-video-mobile {
  display: block;
}

@media (min-width: 768px) {
  body.page-home video.hero-video.hero-video-desktop {
    display: block;
  }

  body.page-home video.hero-video.hero-video-mobile {
    display: none;
  }
}

@media (max-width: 767.98px) {
  body.page-home .headline-row {
    flex-direction: column;
    gap: 0.4rem;
  }

  body.page-home .hero-content {
    padding-bottom: 1.25rem;
  }

  body.page-index-2 .hero-content {
    padding: 0 1.25rem 1.25rem;
    align-items: center;
    text-align: center;
  }

  body.page-index-2 .hero-bar {
    order: 1;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 15px;
  }

  body.page-index-2 .headline-row {
    flex-direction: column;
    margin-bottom: 0;
    text-align: center;
  }

  body.page-index-2 .hero-title {
    text-align: center;
  }

  body.page-index-2 .hero-tagline {
    white-space: normal;
  }

  body.page-index-2 .store-row {
    position: static;
    left: auto;
    bottom: auto;
    order: 2;
    flex-wrap: nowrap;
    max-width: 340px;
    margin: 0 auto;
    width: 100%;
    justify-content: center;
  }

  body.page-index-2 .store-badge,
  body.page-index-2 .store-col {
    width: 100%;
  }

  body.page-index-2 .store-badge img {
    width: 100%;
  }

  body.page-index-2 .hero-video,
  body.page-index-2 .hero-poster,
  body.page-index-3 .hero-video,
  body.page-index-3 .hero-poster {
    object-position: center;
  }

  body.page-index .apps-section,
  body.page-index-3 .app-buttons {
    padding: 1.15rem 1.25rem 1.75rem;
  }

  body.page-home .store-row {
    gap: 0.85rem;
    padding: 6px 0;
  }

  body.page-home .coming-soon {
    margin-top: 0.3rem;
  }

  body.page-home .site-footer {
    margin-top: 1.25rem;
  }

  body.page-home .site-footer a {
    margin: 0 0.55rem;
  }
}

/* ==========================================================================
   Legal pages
   ========================================================================== */

body.page-legal {
  --gold: #b8860b;
  --gold-deep: #9a6b12;
  --ink: #3a2418;
  --muted: #6b5344;
  --page: #fbf7f0;
  --panel: #fffdf8;
  --line: rgba(58, 36, 24, 0.12);
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: "Italiana", serif;
  font-weight: 600;
  letter-spacing: 1px;
}

body.page-legal .legal-top {
  background: var(--panel);
  border-bottom: 1px solid var(--line);
  padding: 1.1rem 1.25rem;
}

body.page-legal .legal-brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

body.page-legal .legal-brand img {
  display: block;
  height: 44px;
  width: auto;
  border-radius: 10px;
}

body.page-legal .legal-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
}

body.page-legal .legal-nav a:hover,
body.page-legal .legal-nav a.active {
  color: var(--gold-deep);
}

body.page-legal .legal-wrap {
  max-width: 800px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
}

body.page-legal .legal-wrap h1 {
  font-family: "Italiana", serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  background: linear-gradient(90deg, #9a6b12 0%, #d4a017 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

body.page-legal .legal-wrap .updated {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

body.page-legal .legal-wrap h2 {
  font-family: "Italiana", serif;
  font-size: 1.45rem;
  color: var(--gold-deep);
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

body.page-legal .legal-wrap p,
body.page-legal .legal-wrap li {
  line-height: 1.75;
  font-size: 0.98rem;
}

body.page-legal .legal-wrap ul {
  padding-left: 1.2rem;
}

body.page-legal .legal-wrap a {
  color: var(--gold-deep);
}

body.page-legal .contact-box {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.25rem 1.4rem;
  margin: 1.5rem 0 2rem;
}

body.page-legal .contact-box p {
  margin-bottom: 0.45rem;
}

body.page-legal .contact-box p:last-child {
  margin-bottom: 0;
}

body.page-legal .site-footer {
  background: var(--panel);
  border-top: 1px solid var(--line);
  text-align: center;
  padding: 1.5rem 1rem 2rem;
  font-size: 0.9rem;
}

body.page-legal .site-footer a {
  color: var(--muted);
  text-decoration: none;
  margin: 0 0.6rem;
}

body.page-legal .site-footer a:hover {
  color: var(--gold-deep);
}
